IsOver
IsOver

Checks the instance is overlapping another object

bOver = myInstance.IsOver( Object, Fine_detection, No_Normal )

Return value
TRUE if the instance is overlapping the object, otherwise FALSE.

Parameters
  • Object
    Object to test collision with. If this is a class, all instances of that class will be checked
  • Fine_Detection
    TRUE to check for a collision on a pixel level. FALSE (default) to check only the bounding box
  • No_Normal
    TRUE to skip calculating the normal angle of the collision (faster). FALSE (default) to calculate a normal angle.
Comments

Fine detection is a slow process compared to bounding box checks and should only be used when necessary.

Normal angles are required for bouncing, platform movements, etc.

See also
Instance:IsCollideWith



JAM © 2005 no one in particular
Project started by David Evans in 2005