M
MagicFool64
Guest
I want to make my character to change sprites when jumps and/or falls, in a platformer game. Do you know a good script?
I use this script:
if vspeed < 0
sprite_index = spr_jump
else if vspeed > 0
sprite_index = spr_fall
else if vspeed = 0
sprite_index = spr_stand
But gives me a bug: when the character is in the air, his sprite turns for 1 second in the standing sprite. And then turns into the falling sprite when falls. Do you know a better script?
I use this script:
if vspeed < 0
sprite_index = spr_jump
else if vspeed > 0
sprite_index = spr_fall
else if vspeed = 0
sprite_index = spr_stand
But gives me a bug: when the character is in the air, his sprite turns for 1 second in the standing sprite. And then turns into the falling sprite when falls. Do you know a better script?