Hares wrote:(if animation == jumping and canjump == 1, change animation to ... )
This is not something you should just translate into code ... That won't work.
What I tried to tell you was that I see two options for doing this.
The first one is:
In a collision event between the player and the ground, that is set not to repeat, you put some code that checks if the player is in the jump animation. You can do this if you know the animindex.
If yes, change it to the default standing animation.
And while doing this you should check if you are facing left, or facing right ... so you can set the standing animation to face left or right.
The second option is:In the draw actor event add some code that checks if the current animation is the jump animation. You can do this if you know the animindex of the jump animation.
If yes, check if the canjump variable is set to the value that allows you to jump again.
If so, that means you are (or were) touching the ground.
Then change the animation to the standing animation.
Make shure to this for facing left, and for facing right.
For the moment I don't have much time. If you can't figure it out yourself, or you don't get help from someone else, I can try to help you later ...