|
image_index |
|
Example
This function sets the frame of the sprites animation, in the above example, instead of the animation starting at the default subimage ( 0 ), it will start at frame 3 (0, 1, 2). When the image has multiple sub-images the program normally cycles through them when placed on the screen but you may wish to stop the animation and just show a specific frame, image_index along with image_speed does just that:
Revision #1 |