image_speed

Example

image_speed = 0.5;

 

image_speed lets you alter the speed of the animation of the sprite, the number is a real number between 0 and 1, 0 means no animation and 1 means full speed. If you specify a number larger than 1, sub images (frames) will be skipped to justify the speed. In the above example, the speed of the animation will be halved.

 

If you want the sprite to be a certain static frame out of a number of frames, you set the image_speed to 0 and image_index to the subimage number of the sprite:

 

image_speed = 0; // Stop the animation

image_index = 2; // 3rd frame of animation

 

Revision #1