GetCameraPriority
Priority = GetCameraPriority(CameraIndex)
 
Parameters:

    CameraIndex = The index of the camera to query
Returns:

    Priority = The priority value of this camera
 

      The GetCameraPriority function returns the cameras draw priority



FACTS:


      * CameraPriority only has effect when cameras are drawn using the DrawAllCameras method

      * Cameras have a default draw priority of 0.



Mini Tutorial:


      This example creates a camera, sets it's draw priority, then display the priority back to the screen.


  
; Create a camera
  CreateCamera 1
  
; Set the Cameras draw priority to 50
  CameraPriority 1,50
  
; Dispaly the cameras current draw priority
  Print GetCameraPriority(1)
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  




This example would output.

  
  50
  

 
Related Info: CameraPriority | CreateCamera | DrawAllCameras | NewCamera :
 


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