Categories


Description :

Moves the object by the specified amount in the X and Y directions. The object will move right by X pixels (or move left if X is negative) and move down by Y pixels (or move up if Y is negative).

Uses :

Use this for moving an object step by step. Most player controlled characters are moved in this manner. Ideally used inside Forever or Whenever blocks.

Example :

This code moves the object by 2 pixels to the left whenever the left arrow key is pressed.