Hit Screen Edge

Description

The Hit Screen Edge behavior will trigger an event as soon as your selected object has collided with the top, left, bottom, or right sides of the screen.

This behavior will trigger an event immediately when executed. As soon as the behavior is executed, it will trigger other behaviors.

 

Properties

Triggers Once on Event

Object A

This is the object that will trigger an event when colliding with the screen edges. By default the current object is selected, but you can tap the graphic and choose any other object in your scene.

Detects Left

Toggle to determine whether this behavior detects collisions with the left side of the screen.

By default the toggle is on.

Detect Right

Toggle to determine whether this behavior detects collisions with the right side of the screen.

By default the toggle is on.

Detects Top

Toggle to determine whether this behavior detects collisions with the top side of the screen.

By default the toggle is on.

Detects Bottom

Toggle to determine whether this behavior detects collisions with the bottom side of the screen.

By default the toggle is on.

 

Outputs

Object ID

This outputs the Object ID.

 

Examples
Use this behavior to see anytime an object has touched the edge of the screen. This can be useful to load the next section of your level, or if you want to create logic to know if an object has left or entered the visible screen space.

 

HitScreenEdgeReference.gif

0 Comments

Article is closed for comments.