r/gamemaker • u/Big_Belt_5375 • 7d ago
Help! Need help with some anim issues
I have been trying to animate the sprites for my platformer and i cant figure out how to make the jump anim NOT loop like when you jump your hair goes up but in game it loops so how can i fix this? i turned off looping in the sprite pane. i also need help for converting to idle hwne the plaer is not moving. my code looks like if key pressed that move him this way im tired bye
1
Upvotes
2
u/Addisiu 7d ago
In the create event jump_end_flag = false
In the step event If vy != 0 and image_index == image_number (or image_number + 1, I don't remember if frame count starts from 0) jump_end_flag = true
If jump_end_flag == true image_speed =0 Else image_speed =1
If vy==0 jump_end_flag = false
That's it
Although, the way jump animations are usually implemented is to map the vertical speed to the animation frame since this allows for smoother half jumps and falls and all that sort of stuff