PositionSpriteZ
PositionSpriteZ SpriteIndex, Zpos#
 
Parameters:

    SpriteIndex = The identifier of the sprite you wish to position
    Zpos# = Z position of sprite
Returns: NONE
 

     PositionSpriteZ sets the Z depth of a sprite independently of it's X and Y positions

See PositionSpriteXYZ for more information about changing the depth of sprite.




FACTS:


      * Sprites can not be positioned at negative Z positions..

      * does not effect the X,Y coordinates of the sprite.




Mini Tutorial:


      Create a sprite, set it's position, then display this position to the screen.

  
  
  
; Create the Sprite
  CreateSprite 1
  
; Set this sprites entities X and Y Positions to 100x,200y
  PositionSpriteZ 1300
  
; Read and display sprite 1's position X,Y and
; Z position to the screen.
  Print GetSpriteX(1)
  Print GetSpriteY(1)
  Print GetSpriteZ(1)
  
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  



This example would output.

  
  0.0
  0.0
  300.0
  

 
Related Info: GetSpriteX | GetSpriteY | GetSpriteZ | PositionSprite | PositionSpriteX | PositionSpriteXYZ | PositionSpriteY :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com