SelectOverBackground
SelectOverBackground

Selects instances which are currently overlapping the background

bSuccess = myClass.SelectOverBackground( Fine_Detection, No_Normal, bAny )

Return value
TRUE if the instances were selected successfully, 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.
  • bAny
    TRUE to select from all instances, FALSE (default) to only check current selection
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:SelectCollideBackground
Class:IsOverBackground



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