GetCameraLimitY2
Ypos = GetCameraLimitY2(CameraIndex)
 
Parameters:

    CameraIndex = The index of the camera you wish to query
Returns:

    Ypos = The Bottom Y position (in world space) of this cameras movement limit
 

      The GetCameraLimitY2 function returns the Bottom most LimitCamera position.



FACTS:


      * None



Mini Tutorial:


      This example creates a camera, sets it's LimitCamera region, then displays this information back on the screen.


  
; create camera 1.
  CreateCamera 1
  
; Limit the Cameras Movement
; To -100x,-500y, And 1100x, 2100y
  
  LimitCamera 1,true
  LimitCameraBounds 1,-100,-500,1100,2100
  
  
; Display the Camera Movement Limits
  Print "Camera X1 Limit:"+Str$(GetCameraLimitX1(1))
  Print "Camera Y1 Limit:"+Str$(GetCameraLimitY1(1))
  Print "Camera X2 Limit:"+Str$(GetCameraLimitX2(1))
  Print "Camera Y2 Limit:"+Str$(GetCameraLimitY2(1))
  
; Display the screen and wait for a key press
  Sync
  WaitKey
  
  



This example would output.

  
  Camera X1 Limit:-100
  Camera Y1 Limit:-500
  Camera X2 Limit:1100
  Camera Y2 Limit:2100
  

 
Related Info: GetCameraLimitX1 | GetCameraLimitX2 | GetCameraLimitY1 | LimitCamera | LimitCameraBounds :
 


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