|
GetSpriteWidth | ||
Width = GetSpriteWidth(SpriteIndex) | ||
Parameters: SpriteIndex = The number of the sprite you wish to check |
||
Returns: Width= The width in pixels of this sprites image |
||
GetSpriteWidth returns the current width of this sprite in pixels. The sprites width is taken from them it's currently assigned image. FACTS: * If the sprite hasn't been assigned an image (See SpriteImage) GetSpriteWidth will return zero. Mini Tutorial: Create a sprite, create an assign it an image, then read and display the current size of the image and sprite.
This example would output.
|
Related Info: | GetSpriteHeight | GetSpriteImage | SpriteImage : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |