Pujii May 7, 2013 @ 8:26pm
Image speed vs Room speed?
All my sprites have 6 frames/sub-images each, which go too fast at the default 30 room speed. So which would be better overall to lower in order to slow down the animation?
Showing 1-6 of 6 comments
< >
Zombie Parts May 7, 2013 @ 8:42pm 
If you're trying to slow the animation of your sprites, it's best to lower your image_speed, lowering your room speed will cause the game over all to be slower. An example would be image_speed = 1; would make your sprite change frames once every step.
Last edited by Zombie Parts; May 7, 2013 @ 8:48pm
Pujii May 7, 2013 @ 9:07pm 
Ok, I thought as much. What if I wanted to do a quick dramatic slo-mo effect, should I drop the image speed again or the room speed this time?
M.S.T.O.P. May 7, 2013 @ 9:37pm 
An object's animation speed (in frames per second) is determined by this formula: image_speed * room_speed

The default image_speed is 1. So if you want to halve the object's animation speed, you would set image_speed = 0.5;

If you want eveything in the game to slow down, you would reduce the room_speed. E.g. if your room_speed was 30, then room_speed = 15 will slow the game down by half.
Pujii May 8, 2013 @ 12:01am 
Alright, thanks for all the help to both of you!
The Bunyip May 13, 2013 @ 11:16am 
Also worth pointing out that sometimes you want the image not to change sub-images at all (i.e. if no key is pressed for example);
image_speed = 0;
image_index = -1 // -1 here will stop on the sub-image it was on when you are no longer pressing the key. If you want this to be a specific sub-image. Indicate which, by using the appropriate number
Last edited by The Bunyip; May 13, 2013 @ 11:18am
Pujii May 13, 2013 @ 8:23pm 
Yeah, thanks. I also wanted to stop the sprite on the last frame of animation so I used the "Animation End" event with "image_index = image_number - 1" which seems to work but let me know if that will cause problems later :)
Showing 1-6 of 6 comments
< >
Per page: 15 30 50
Date Posted: May 7, 2013 @ 8:26pm
Posts: 6