#i’m trying to make a rpg for when all enemies are dead the map switches but i don’t know how

1 messages · Page 1 of 1 (latest)

meager burrow
#

help

silent flax
#

use a numerical global variable, everytime an enemy dies, the variable increases. if the variable = enemy amount then make it switch map

meager burrow
#

?

#

like this

silent flax
#

in an infinite loop

meager burrow
#

ohh

silent flax
#

also, if the map u wanna switch to also needs to kill all enemies to progress make sure to set the variable to 0

meager burrow
#

um

#

it doesn’t let me put it in

silent flax
#

u forgot the if

meager burrow
#

ok i got it lemme try

#

it works

#

thanks man