Move to Point

Description

The Move to Point behavior will move the selected object to a specific X and Y location in your world (scene), or on your screen..

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

 

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 (m): This will move your object to the specified location on the grid (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, and your object will end u p in the middle of the screen.

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

Point X

The specified location along the horizontal (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.

Point Y

The specified location along the vertical (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.

Screen Coordinates

When this toggle is on, the object will move to a specific point on the screen instead of a point within the scene world.

You can learn more about screen coordinates in the Canvas documentation 

Duration

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

Outputs

This behavior does not have any outputs.

Examples

If you want to move an object to the bottom left corner of the screen, you can enter the X and Y coordinates as 0 M, and toggle on Use Screen Coordinates.

Related

Move to Object

Move By

 

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk