Page 79 - Digicode_AI_class_4
P. 79
The ‘X’ position can range from 240 to -240. Y position can range
from 180 to -180.
Critical Thinking
code Quest Information Literacy
1. Which block is also called a wrap block?
2. Which block stops the script from functioning?
Direction –15 0 15
–30 30
The words up and right are perfectly understood –45 45
as directions by human beings. But the Sprite –60 60
needs a number to indicate the exact direction.
–75 75
The direction numbers are between −180 and 180
–90 90
degrees. Pointing at 0 degrees means facing up
with respect to the Sprite. Pointing at 90 degrees –105 105
is facing to the right with respect to Sprite. Also, –120 120
notice that −180 and 180 degrees point in the same –135 135
direction: down. –150 150
–165 ±180 165
Some of the commonly used motion blocks are:
Blocks Functions
move 10 steps This block lets the Sprite move forward (in the direction
it is facing).
turn 15 degrees This block turns Sprite in clockwise direction.
turn 15 degrees This block turns Sprite in an anti-clockwise direction.
go to x: 0 y: 0 This block moves the Sprite to a specified XY position.
set x to 0 This block changes position of Sprite on X-axis according
to the specified position.
change x by 10 This block changes position of Sprite on X-axis by specified
number of steps.
Blocks in Scratch 77

