N
nicktheslayer95
Guest
I have an enemy that jumps, in a top-down game, so when the enemy is drawn it uses a fake Z axis "slimeZ", to show that height.
Now, I want to check for when the slime lands, and spawn particles at that time. I'm trying to find if there's a way to say "if slimeZ = 0 and slimeZprevious = 1, instance_create(objParticle)"
xprevious and yprevious are built into GML, but there doesn't seem to be a customVariable.previous of any kind, so how else can I achieve this?
Now, I want to check for when the slime lands, and spawn particles at that time. I'm trying to find if there's a way to say "if slimeZ = 0 and slimeZprevious = 1, instance_create(objParticle)"
xprevious and yprevious are built into GML, but there doesn't seem to be a customVariable.previous of any kind, so how else can I achieve this?