So I’ve got a game I’m woking on in AS3 …I need a way to detect when the player initially hits the ground and play a landing animation and then play the stand animation. So far I have my code set up with a main game loop (obviously)...and in the loop it detects all the collision. The variable “downBumping” detects when the player is hitting the ground, but not when he hits the ground. And it is run every frame (30 fps) so i cant reference that to detect when the player initially does it, as its done every frame that the variable is true. If I look at my output I have it set to display “down bumping” when the variable is being set to true…the output window fills up quickly. lol. Anyone have any ideas on how I might work around this?
I ended up figuring it out. Nvm.
