#variable not set before reading it

6 messages · Page 1 of 1 (latest)

spiral token
#

when an enemy dies i get this error

pliant vale
# spiral token

The 3rd argument should be a string, which is the name of the layer you're gonna spawn O_dead. The way you have it is you're trying to spawn O_dead on the enemy layer, which would work if the enemy variable had a string value in create, but it doesn't exist in create either.

#

if you DO have a layer called enemy in your room, then you should be using "enemy" in that instance_create call instead

spiral token
#

that worked thank you