GetCameraLimitX2
Xpos = GetCameraLimitX2(CameraIndex)
 
Parameters:

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

    Xpos = The Right X position (in world space) of this cameras movement limit
 

      The GetCameraLimitX2 function returns the Right most Limitcamera position.



FACTS:


      * None



Mini Tutorial:


      This example creates a camera, sets it's LimitCamera region, then displays this information back to 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: GetCameraLimit | GetCameraLimitX1 | GetCameraLimitY1 | GetCameraLimitY2 | LimitCamera | LimitCameraBounds :
 


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