Get Sprite Colors


red = GenGetSpriteRed(sprite)

green = GenGetSpriteGreen(sprite)

blue = GenGetSpriteBlue(sprite)

alpha = GenGetSpriteAlpha(sprite)

These functions return the color settings for the given sprite. Values returned will be 0 - 100 and may have a fractional component. The alpha is used to set how transparent a sprite is. Normally all these functions will return 100 percent. If the colors are set to any lower value then the sprite is tinted by the removal of color.


Game Engine Overview







Become a Patron