Sprite change offset

This function sets the x and y offset (origin) of the specified sprite asset. Coordinates are relative to the (0,0) position being the upper left corner of the sprite.

Syntax
sprite_change_offset( sprite, xoff, yoff );

Returns
N/A

Basic
// load.gml // sets the origin of sprite "idle_strip#.png" to be 32 pixels right of the left edge and 64 pixels down from the top edge // this character uses small_sprites, so the optional argument is used sprite_change_offset( "idle", 32, 64, true );