|
NewSprite | |
SpriteIndex = NewSprite(Xpos, Ypos, ImageIndex) | |
Parameters: Xpos = The starting X coordinate of this sprite Ypos = The starting Y coordinate of this sprite ImageIndex = The Image this sprite should use |
|
Returns: SpriteIndex = The Index of the created sprite |
|
The NewSprite() function creates a new sprite while pre-initializing the sprites X / Y positions and default Image. Unlike CreateSprite, NewSprite() will automatically return the created sprites index for you. You don't have to supply it. FACTS: * NewSprite will always return a new sprite index for you. * Note: We highly recommended you read the Sprites and Images tutorials also! |
|
Example Source: Download This Example
|
Related Info: | CreateSprite | DeleteSprite | GetFreeSprite | GetSpriteStatus | SpriteCollision | SpriteImage : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |