If you wish to change the sprite of an object, then execute a piece of code, and use this built-in variable:

sprite_index = <sprite_name>

Make sure you do not use any spaces with your sprite names as well as not using the same name for multiple object/sprites. If you want to change the subimage of a sprite, then use image_index = <subimage number>

Community content is available under CC-BY-SA unless otherwise noted.