Set Instance Colour


This action block sets the image_blend colour for "blending" with the instance sprite. The default value is -1 (which represents the colour white) and this will draw the sprite using no blending. Any other value (including internal colour constants like c_red, or c_aqua) will blend the specified colour with the original sprite. Please note that for changes in this action to be visible, the instance should have either no draw event (and so GameMaker Studio 2 will default draw the sprite) or be drawn using Draw Self action. It is important to note too that you should try to limit blending on the Windows 8 (JavaScript) or HTML5 platforms (unless using WebGL), as each blended sprite has to be cached separately and so having many blended sprites may adversely affect performance. Sprite Colouring

Action Syntax:

Set Instance Colour Syntax


Argument Description
Colour The new blending colour to use (clicking the colour swatch will open the colour picker window).


Set Instance Colour Example
The above action block code sets a new sprite as well as a number of other properties for how that sprite is to be displayed, including setting the blend colour to pink.