Page 72 - IT_V5.0_Class8
P. 72
Block Explanation
Points the sprite towards the mouse pointer.
Changes the sprite’s X position by the specified number of
steps.
Sets the sprite’s X position to the specified value.
Changes the sprite’s Y position by the specified amount.
Sets the sprite’s Y position to the specified value.
Makes the sprite bounce back when it touches the edge of the
screen.
Changes how the sprite rotates.
Reports the sprite’s current X position.
Reports the sprite’s current Y position.
Reports the sprite’s current direction.
Example 1: Moving and turning a sprite
Follow the given steps:
Step 1: Drag and drop the when clicked block from the Events category.
Step 2: Drag the move with 10
steps and drop it below
the when clicked
1
block.
Step 3: Drag the turn block
2
and change its value
to 90 degrees. The
sprite moves 10 steps 3
forward and then turns
90 degrees when the
green flag is clicked,
causing the Cat sprite
to rotate and change
its position on the
stage.
70 Information Technology (V5.0)-VIII

