|
SpriteImage | ||
SpriteImage SpriteIndex, ImageIndex | ||
Parameters: SpriteIndex = The identifier of the sprite you wish to create ImageIndex = The identifier of image you wish to assign to this sprite |
||
Returns: NONE | ||
SpriteImage assigns an sprites and image. The sprite will then use this image each time this sprite is rendered. The image will be drawn using the sprites current draw mode (see SpriteDrawMode). This allows many different sprites to share the same image, all with unique draw mode settings and effects. To animate a sprite, we simply assign new images (from a sequence) each update. FACTS: * Before a sprite can be drawn, it must be assigned an Image. * You can assign the same image to more than one sprite, each sprite can have it's own draw mode properties without effecting the sprite also. * You can not assign a sprite an image that does not exist. * Note: We highly recommended you read the Images tutorials also! Mini Tutorial: Create a sprite, assign it an image and display a sprites image property.
This example would output.
|
Related Info: | DrawAllSprites | DrawOrderedSprites | DrawSprite | GetSpriteDrawMode | GetSpriteImage | LoadIMage | SpriteCollision | SpriteDrawMode : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |