S
SonicTheHedgehog+123
Guest
I making a platformer and want my player to switch his image_index for a whole jump. My problem is that at the climax of my jump the image_index switches for an instant. I could use an alarm when jumping so the player is
always in the wanted sprite but I think this is cheap. Is there a better method? Open for help
always in the wanted sprite but I think this is cheap. Is there a better method? Open for help
Code:
with Fledermaus{
if vspeed < 0 || vspeed > 0 // checks if the player is jumping or falling
image_index = 3
else
if ( image_index >1 ) with (Fledermaus_Bild)
{
image_index = 0;
}
}