3 Simple Movement Blocks
-
Prerequisite
Description
The “Go to center”, “Forward” and “Backward” blocks are Stack blocks in the Motion category.
The “Go to Center” Block
This block moves the sprite to the center of the stage.
The “Forward” Block
This block moves a sprite forward, in the current direction that sprite is pointing to.
Note: by default a sprite points to the right.
The “Backward” Block
This block moves a sprite backward, opposite to the direction the sprite is pointing to. So if a sprite is pointing down, then moving “backward” would make the sprite move up.
Stopping at the Stage Edge
If you click the “Forward” or “Backward” block multiple times, it will keep moving the sprite until it reaches the edge of the Stage.
Tip: Reset to Center
Very often, the sprite’s position would change after a project runs. You can use the “Go to Center” block right after the Greenflag Block to bring the sprite back to the center position.