GetCameraLimit
Flag = GetCameraLimit(CameraIndex)
 
Parameters:

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

    Flag = The State of LimitCamera (0 = Off, 1 = On)
 

      The GetCameraLimit function returns the state of LimitCamera property for this camera. If it returns true(1) then this cameras movement is limited to within a user defined area, if it's false, then it can move anywhere.



FACTS:


      * None



Mini Tutorial:


      This example creates a camera, sets it's LimitCamera region, then displays if the LimitCamera state 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 Limit:"+Str$(GetCameraLimit(1))
  
; Display the screen and wait for a key press
  Sync
  WaitKey
  
  



This example would output.

  
  Camera Limit:1
  

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


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