SmartBuilder > Help Documentation

Motion

There are several ways to move objects, layers, or whole stacks. View an example.

You can move an object:

  1. to an xy coordinate
    move to xy.png
  2. In a direction
    move towards direction
  3. On a motion path
    move on a motion path
  4. To another object
    move to object
  5. To last touched xy (with the user’s mouse)
    move to last touched
  6. To the object's start position (where the object was on page load)
    move to start position
  7. Note All motions will complete in one second by default. You can adjust the motion speed to be faster or slower using a Config action block.

Move to an XY coordinate

View example

  1. Click the Move action category and add the move to x,y block to your action.
    move action category
    move to xy.png
  2. Fill the empty socket with the object reference block for the object you wish to move.
    move image to xy
  3. Adjust the x and y coordinates to your desired position.
    move to xy with values
  4. Tip By default, motion and effect action blocks will run concurrently. However, sometimes you may want them to run sequentially. For example, you may want to move an image, and once the motion is complete, show some text. To achieve this, you can place a wait for block between the move and show blocks. By default, the move will take 1000 milliseconds (1 second), so in this example, the wait for block should be set to 1 second.

    * Read this topic on adjusting motion duration to be more or less than 1 second.

    wait block tip

Move in a direction

View example

  1. Click the Move action category and add the move towards block to your action.
    move action category
    move towards direction
  2. Fill the empty socket with the object reference block for the object you wish to move.
    move towards
  3. Adjust the dropdown to select the desired direction.
    move towards direction dropdown list
  4. Adjust the number block to control how far the object will move.
    move towards direction with value

Move on a motion path

View example

  1. Click the Move action category and add the move along path block to your action.
    move action category
    move on a motion path
  2. Fill the empty socket with the object reference block for the object you wish to move.
    move along path with object
  3. Add a motion path object to your stage.
    motion path object
  4. Click to add points to your motion path.
    motion path points

    Note When you click to add a motion path object you will immediately begin to place the points of your path. Press the Escape key to stop adding points and complete your path.

  5. Adjust your motion path. You can click and drag on any of your motion path's points and reposition them.

    Note The way an object moves along a motion path is relative to its current position. In the example below, the arrow is going to move toward the right and down. It will not snap up to start its motion at the exact location of point #1 of the path.


    arrow near path
  6. In the move along path action block, use the dropdown menu to select your newly created motion path.
    motion path select path
  7. In the from socket, enter a number to indicate the point from which you want to start moving.
  8. In the to socket, enter “end” or a number (“1”, “2”, etc.) to indicate where the motion should end.
  9. Adjust the number of seconds you want the motion to take. In the example below Character 1 will move along Motion Path 1 from point 2 to point 4 in 1.5 seconds.
    move on motion path action complete
  10. Select the motion path and in the Properties panel adjust the property for Rotate. This will bring up the Rotation while Moving dialog box. Here you can control how your object will move along the motion path.
    roatation while moving
  11. Adjust the Rotate object dropdown menu.

    Its options are:

  12. Adjust the Additional rotation property, if needed, to add any additional rotation.

Move to another object

View example

  1. Click the Move action category and add the move object to object block to your action.
    move action category
    move to object
  2. Fill the empty move object socket with the object reference block for the object you want to move.
    move to obect object reference added
  3. Fill the empty to object socket with the object reference block for the object you want to move your first object to.
    move to obect move to added
  4. Adjust the anchored dropdown menu to indicate which anchor point you want to move to.
    move to obect anchored dropdown
  5. Adjust the with margin value to indicate in pixels how much buffer you want from the anchor point.
    move to obect add margin

    Tip Use tag lists and the trigger object block to reduce the number of actions.

    move to obect add margin

Move to last touched x,y (with the user’s mouse)

View example

  1. Click the Move action category and add the move to x,y last touched block to your action.
    move action category
    move to last touched
  2. Fill the empty socket with the object reference block for the object you wish to move.
    move to last touched object reference

Move to start position

View example

  1. Click the Move action category and add the move to start position block to your action.
    move action category
    move to start position
  2. Fill the empty socket with the object reference block for the object you wish to move.
    move to start position object reference

    Note This move block will return the referenced object to the position it was in when the page loaded.

Customize motion speed

  1. Click the Move action category and add the Config block to your action.
    move action category
    configure move duration
  2. Adjust the number block to change the number of milliseconds the motion will take to complete.
    configure move duration value

Note By default, the motion time will last 1 second (1000 milliseconds). If you want to use different move durations within the same action you can use the reset configuration block. In the example below when the page loads Character 1 will move to its new x,y position over 4.5 seconds. Then the rich text object will move to the left by 25 pixels in 1 second, which is the default move duration.

reset config example