IsOverBackground
IsOverBackground

Checks if any instance is overlapping the background

bOver = myClass.IsOverBackground( Fine_Detection, No_Normal )

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

Parameters
  • 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
Class:IsCollideBackground
Class:SelectOverBackground



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