Fandom

Game Maker

Change the sprite

281pages on
this wiki
Add New Page
Talk0 Share

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_ind ex = <subimage number>

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.