SetSpriteBlendMode

Category: Images and Rendering

Back to System Functions


Signature

SetSpriteBlendMode(spriteReference As Integer, mode As Integer)

Returns

Void

Description

Sets the blend mode stored on a sprite. Future DrawSprite calls for that sprite use the supplied mode for every frame in the sprite sheet.

The mode argument should be a value from Blend Mode Constants.

Example

hero = LoadSprite("player.png", 32, 32) SetSpriteBlendMode(hero, BLEND_ALPHA) SetSpriteBlendMode(glowHero, BLEND_ADDITIVE)