SpriteOverride (class)

This class represents an image resources bounded to a specific sprite. This is a "virtual" class which is created for every SMBX object (Blocks, BGOs, NPCs, ...). You can access this class with Graphics.sprites.####[*] #### represents the graphics group. The different graphics groups are named after the folders in the graphics folder. * is the id of the object.

Example: This example would swap the image resource of the block with the id 1 with myNewImageResource.

To reset it back to default you can do:

Further fields and functions are listed here: