GetSpriteCollisionClass
CollisionClass = GetSpriteCollisionClass(SpriteNumber)
 
Parameters:

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

    CollisionClass = The Collision Class value
 

      The GetSpriteCollisionClass function returns the current collision class value of this sprite.



FACTS:


      * See SpriteCollisionClass



Mini Tutorial:


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


  
  
; Create Sprite #1
  CreateSprite 1
  
; Display the states
  Print "Collision State:"+Str$(GetSpriteCollision(1))
  Print "Collision Class:"+Bin$(GetSpriteCollisionClass(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
  

 
Related Info: GetSpriteCollision | SpriteCollision | SpriteCollisionClass :
 


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