sprite_index

This is the index of the current sprite for the instance. You can change it to give the instance a different sprite. As value you can use the names of the different sprites you defined. Changing the sprite does not change the index of the currently visible sub-image.

Examples

sprite_index = spr_block;

This code will change sprite_index to the sprite "spr_block", which will be showed when drawing the instance.
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License