|
GetSpriteTransparent | ||
TransparentFlag = GetSpriteTransparent(SpriteIndex) | ||
Parameters: SpriteIndex = The iindex of the sprite you wish to set |
||
Returns: TransparentFlag = The transparent state (0= solid, 1= transparent) |
||
The GetSpriteTransparent function returns the current transparent status of a sprite. The function will return a True (1) if the sprite is currently being rendered as Transparent, or a False (0) if it's being drawn solid. FACTS: * Also see SpriteTransparent Mini Tutorial: This example has is really 3 parts. Part 1 creates an image. Part 2 then creates 10 sprites and assigns each sprite the previously created image from part1. Then last part, renders the sprites to the screen. If the user hits the Space key, the transparent status of each sprite it toggled. So the sprites will change their rendering mode
This example would output.
|
Related Info: | ImageMaskColour | SpriteDrawmode | SpriteTransparent : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |