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 the next connected behavior.

Properties

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

This behavior does not output any values.

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.

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk