S
Spin Attaxx
Guest
So I've made a spriteset that act as a transition from my player's jumping sprite to their falling one. The sprite is four subimages long, and I've programmed it so that when my player's vertical speed is greater than or equal to 0 (so when they stop gaining height and start falling down) it switches from my jump sprite to my falling sprite.
Now, this part works... but it only plays the first frame without going beyond that. I haven't done anything with this sprite's image_speed; so far as I know, it should be set to 1 by default and loop constantly until I specify when it stops or when it changes to another sprite index. Even if I set it to 1 or 0.5 or whatever in my player's Step event like with my run animation, it only displays the first image. I even checked the sprites themselves, and they don't have any problems. I don't know what's causing this.
Now, this part works... but it only plays the first frame without going beyond that. I haven't done anything with this sprite's image_speed; so far as I know, it should be set to 1 by default and loop constantly until I specify when it stops or when it changes to another sprite index. Even if I set it to 1 or 0.5 or whatever in my player's Step event like with my run animation, it only displays the first image. I even checked the sprites themselves, and they don't have any problems. I don't know what's causing this.
Code:
if (grounded != true)
{
if (vsp < 0) sprite_index = spr_player_jump;
if (vsp >= 0) sprite_index = spr_player_fall;
}