Move By

Description

The Move By behavior will move the selected object by a specified amount.

This behavior will Trigger an event when it has completed running.

 

Properties

Object A

This is the object that you want to move. By default the current object is selected, but you can tap the graphic and choose any other object in your scene.

Transition

The motion tween effect used if the duration is greater than 0. 

Position Type

You can select how you want to move your object. Using Absolute Position or Relative Position.

Absolute Position: This will move your object by the specified meters. 

Relative Position(%): This option will move your object based on a percentage of the screen. for example, if you enter X: 50% it will move by 50% of the width of the screen.

You can learn more about absolute and relative positions by reading the Multiple Screen Sizes and Devices documentation.

Move by X

The specified amount to move your object horizontally along the X Axis.

This value can be entered manually, or you can move the blue target on the Object A selection screen and the field will be populated automatically.

Move by Y

The specified amount to move your object vertically along the Y Axis.

This value can be entered manually, or you can move the blue target on the Object A selection screen and the field will be populated automatically.

Duration

How long it will take to move your object to the new position (in seconds).

Interrupt Movement

If this toggle is on, the behavior will stop any current movement and use the new position instead. If the toggle is off, it will run multiple move behaviors simultaneously, averaging the total movement between all the running move behaviors. This toggle only applies to objects moving using the "Move" transform behaviors.  By default this toggle is on.

Outputs

This behavior does not have any outputs.

Examples

If you want to move an object by 5 meters along the X axis every time you press a button, connect the Move by to the started touching, and make it set to Move X: 5m.

 

Related

Move to Object

Move to Point

 

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk