PositionSpriteY
PositionSpriteY SpriteIndex, Ypos#
 
Parameters:

    SpriteIndex = The identifier of the sprite you wish to position
    Ypos# = Y position of sprite
Returns: NONE
 

      PositionSpriteY sets the Y position of a sprite independently of it's X and Z positions




FACTS:


      * PositionSpriteY does not alter the X or Z position of this sprite. See PositionSprite, PositionSpriteXYZ

      * Also See MoveSprite




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
  PositionSpriteY 1100
  
; 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
  200.0
  0.0
  

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


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