GetCameraY
Ypos = GetCameraY(CameraIndex)
 
Parameters:

    CameraIndex = The Index of the Camera that you wish query
Returns:

    Ypos = The Y position of this camera
 

      The GetCameraY() function returns the Y position of this camera.



FACTS:


      * Camera positions are in World Space, not Screen Space. So the camera may be looking at a coordinate way beyond the screens size.




Mini Tutorial:


      Create a camera, position it and then read back and display this position.

  
  
; CReate a Camera
  CreateCamera 1
  
; Position This Camera to the world space coord of 3000,4000
  PositionCamera 1,3000,4000
  
; Read this cameras X & Y Positions
  Print "Cameras X pos:"+Str$(GetCameraX(1))
  Print "Cameras Y pos:"+Str$(GetCameraY(1))
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  



This example would output.

  
  Cameras X pos:3000.0
  Cameras Y pos:4000.0
  

 
Related Info: GetCameraX | MoveCamera | PositionCamera | PositionCameraX | PositionCameraY :
 


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