I’m trying to get the Hordes to increase by one when the amount of Zombies <= 0, but for some reason that is the only time I cant get it to change.
function setup()
parameter.watch("Horde")
parameter.watch("Zombies")
Horde = 0
if Horde == 0 then
Horde = Horde + 1
end
Zombies = 7
if Zombies == 0 then
Horde = Horde + 1
end
end
function draw()
background(255, 2, 0, 255)
font("Noteworthy-Bold")
fontSize(25)
text("Round: "..Horde,50,25)
if Horde == 1 then
Zombie:draw()
end
end
function touched(t)
if t.tapCount == 1 and t.state == ENDED then
Zombies = Zombies - 1
end
end