Behavior : Pixel collide

Author:Rex.Rainbow

Download

Properties

Sample rate

  • Sample rate of overlap testing, 0 to 1.

Actions

Push out

Action:Push out

  • Push the object to a space if it is overlapping a canvas.
    • Direction ( Combo ) : Choose the method of push out.
      • Options : ["Opposite angle","Nearest","Up","Down","Left","Right"]
    • Canvas ( object ) : Select the canvas to push out.

Action:Push out at angle

  • Push the object to a space at an angle if it is overlapping a canvas.
    • Angle ( number ) : Angle, in degrees, to push the object out at.
    • Canvas ( object ) : Select the canvas to push out.

Expressions

Push out

Expression:BounceAngle

  • Get bounce angle while collision.

Conditions

Collisions

Condition:On collision with another canvas

  • Triggered when the canvas collides with another canvas.
    • Canvas ( object ) : Select the canvas to test for a collision with.

Condition:Is overlapping another canvas

  • Test if the canvas is overlapping another canvas.
    • Canvas ( object ) : Select the canvas to test for overlap with.

Condition:Is overlapping at offset

  • Test if the canvas is overlapping another canvas at an offset position.
    • Offset X ( number ) : The amount to offset the X co-ordinate (in pixels) before checking for a collision.
    • Offset Y ( number ) : The amount to offset the Y co-ordinate (in pixels) before checking for a collision.
    • Canvas ( object ) : Select the canvas to test for overlap with.