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
Triggers on Completion
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. 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
Object ID |
This outputs the Object ID. |
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
0 Comments