.move()

Bitsbox's .move command moves a stamp,  text object, or circle on the screen. You can tell it to move to a specific location on the screen, or move in a specific direction by a specified distance. You can also specify how long the move should take to complete. This number is expressed in milliseconds (thousandths of a second).

This program instantly moves the apple stamp to 200,200 and the text 'apple' to 200,300, and the circle to 200,250 when you tap on the screen.

This example does the same move, but animates the move over 1000 milliseconds (1 second).

Handing in the name of a direction, moves a stamp, text object, or circle that direction by a distance equal to its size.

You can also add a second parameter to move it by a certain number of pixels.

Adding a third parameter animates the move over that number of milliseconds.

Calling move with no parameters instantly moves the stamp, text object, or circle to a random screen position. In this example, the stamp,  text object, and circle probably won't end up near each other. They each get their own random location.

Note that if you use a direction like UP or RIGHT, the actual direction the stamp, text object, or circle moves can depend on the object's rotation. If a stamp, text object, or circle is unrotated, UP means up. If an object is rotated 90 degrees (toward 3 o'clock), then UP will move it to the right. Here's a little program that slowly rotates a watermelon. Every time you tap it moves UP, but as you'll see, UP is relative to the stamp's rotation.

If you want your stamp, text object, or circle to move UP regardless of its rotation, consider trying the direction NORTH instead. NORTH in Bitsbox is always toward the top of your screen.