• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

not going through the sprites slides???

K

Kirpy

Guest
if (!place_meeting(x,y+1,oGrass3))
{
sprite_index = ninja_blue_jump
image_speed = 0;
if (sign(vsp) > 0) image_index = 1; else image_index = 0;
}
else
{
image_speed = 1;
if (hsp == 0)
{
sprite_index = ninja_blue_idle;
}
else
{
sprite_index = ninja_blue_run;
}
}

for some reason the run animation and idle animation does not work at all. the sprite will change correctly but it does not go through the slides of the sprites. please help.
 

YoSniper

Member
When you set image_speed = 1; that means that the image_index will increment by 1 EVERY STEP. By default, Game Maker games run at 30 frames per second (designated by room_speed,) which means that your sprite would animate through all of its frames in less than a second.

Without knowing any further details of the sprites (i.e. how many images are in each,) I can't be sure.
 
Top