Tilt Analog

Description

The Tilt Analog behavior is an advanced behavior that will output the X and Y value of the tilted device. You can use this to create advanced input controls that go beyond the built in "Tilt Controlled" behavior.

 This behavior will Trigger an event repeatedly while you're tilting the device in any direction.

Properties

Object A

This is the object you want to control by tilting. By default the current object is selected, but you can tap the graphic to change it to any other object in your scene. 

Tilt Positon

This allows you to set a default resting position for your devices tilt. For example, 'Regular' is optimal for when you are sitting on a char, or 'Top Down' is food for when your device is flat on a table.

 

Outputs

X

This value indicates how much the device has been tilted in the X axis. Negative numbers indicate the joystick is moving left, positive indicate right. 

Y

This value indicates how much the device has tilted in the X axis. Negative numbers indicate the device is tilted down, positive indicates up.

Examples

You can use this behavior if the built in Tilt Controlled behavior does not suite your needs. You can output the X and Y analog positions, and use other behaviors to move your object or add other gameplay elements.

 

 

Related


Tilt Controlled

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk