GetSpriteVisToCamera
CameraBits = GetSpriteVisToCamera(SpriteNumber)
 
Parameters:

    SpriteNumber = The Index of the sprite you wish to set the camera visibility of
Returns:

    CameraBits = The camera visibility flags of this sprite
 

      The GetSpriteVisToCamera function returns the camera visibility of a sprite.




FACTS:


      * By default each sprites camera visibilty flag is set to 65535 (%1111111111111111 in binary)





Mini Tutorial:


      This example creates a sprites, then displays the camera default Camera visibility flags.


  
  
; create sprite #1
  CreateSprite 1
  
; Display the sprites camera visibility flags
  Print GetSpriteVisToCamera(1)
  
  
; Display the screen and wait for key press
  Sync
  WaitKey
  
  




This example would output.

  
  65535
  

 
Related Info: CameraBasics | CreateCamera | SpriteVisToCamera :
 


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