C
ciwiaf
Guest
Hi, I have a problem with my animation when my character jump.. I have a 6 frame animation when my character jumps, then when he's falling, I have 2 frames for that. basically, every time my character jumps, the animation has a delay sometimes, like it doesn't play ASAP, also sometime it play the last frame first then start at the beginning, so it looks like he's flickering mid-air. I'm very new at GameMaker so any help would be greatly appreciated.
Here's my code for the animation:
Here's my code for the animation:
Code:
if grounded {
sprite_index = sp_boy; //run animation
}else if vsp < 0
{
sprite_index = sp_boy_jump; //jump animation
}
else
{
sprite_index = sp_boy_fall; //fall animation
}