|
|
| PositionSpriteXYZ | ||
| PositionSpriteXYZ SpriteIndex, Xpos#, Ypos#, Zpos# | ||
| Parameters: SpriteIndex = The identifier of the sprite you wish to position Xpos# = X position of sprite Ypos# = Y position of sprite Zpos# = Z depth of sprite |
||
| Returns: NONE | ||
PositionSpriteXYZ sets the position of a sprite to a specific X, Y and Z coordinate The Z refers to the depth of the sprite. Changing it's depth will not effect the sprites appearance (it won't zoom/scale the sprite in/out), but it does change the sprites draw order priority during rendering. Sprites with a higher Z depth are drawn before sprites with a lower depth. So by setting a sprite to a particular depth you can control what sprites will move in front of or behind, of other sprites on screen. FACTS: * Sprites can not be positioned at negative Z positions. * In order to see your sprites drawn based upon their Z depths, you must use DrawOrderedSprites. * If your capturing sprite to the scene or world buffer, you can use either DrawALLsprites or DrawOrderedSprites. Mini Tutorial: Create a sprite, set it's XYZ positions, then display this position to the screen.
This example would output.
|
||
Example Source: LOGIN to Download This Example
|
| Related Info: | GetSpriteX | GetSpriteY | GetSpriteZ | PositionSprite | PositionSpriteX | PositionSpriteY | PositionSpriteZ : |
|
|
|||||||||||||||||||||||||||||||||||||||
|
(c) Copyright 2002 - 2026 - Kevin Picone - PlayBASIC.com |