GetSpriteCollisionDebug
State = GetSpriteCollisionDebug(SpriteNumber)
 
Parameters:

    SpriteNumber = The Index of the sprite you wish to query
Returns:

    State = The Sprites Collision Debug State (0=OFF, 1=ON)
 

      The GetSpriteCollisionDebug function returns the sprites current collision debug setting. The function will return a True(1) when enabled, and a False when it's disabled.




FACTS:


      * See SpriteCollisionDebug & SpriteCollisionMode




Mini Tutorial:


      This example creates a sprite, then displays the default collision state, collision class,Collision mode and debug state values from it.


  
  
; Create Sprite #1
  CreateSprite 1
  
; Display the states
  Print "Collision State:"+Str$(GetSpriteCollision(1))
  Print "Collision Class:"+Bin$(GetSpriteCollisionClass(1))
  Print "Collision  Mode:"+Str$(GetSpriteCollisionMode(1))
  Print "Collision Debug:"+Str$(GetSpriteCollisionDebug(1))
  
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  



This example would output.

  
  Collision State:1
  Collision Class:%00000000000000000000000000000001
  Collision  Mode:0
  Collision Debug:0
  

 
Related Info: GetSpriteCollision | SpriteCollision | SpriteCollisionClass | SpriteCollisionDebug | SpriteCollisionMode :
 


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