PRACTISE TIME
MOVING A SPRITE
-
Open the Scratch window
-
Click on the move 10steps
-
block and drag it to the Script area.Change the step number from 10 to 20 by typing in the number box.Click on the block.You will notice that the sprite moves the specified number of steps.
-
Click on the turn
⤵️15degreesblock.Now drag and drop it on the script area.place it below the
move20steps block.
-
keep clicking on any block in the script area.
-
Obeserve that the sprite is moving 20 steps forward and turning 15 degrees in the clockwise direction on the change.
|
DIRECTIONS IN SCRATCH
Directions indicate how the sprite will turn while executing a move instruction.
When we specify the direction for a sprite,we set the value by which the sprite has to rotate.For each direction,there is a fixed value.For example,to turn towards right,the sprite turns 90°.Similarly, for the left turn,the sprite turns-90°.
The following table will give you the values to be set for each direction.
| Direction |
Values(in degrees) |
| Upward |
0 |
| Downward |
180 |
| left |
-90 |
| Right |
90 |
| Up Right |
45 |
| Down Right |
135 |
| Down Left |
-135 |
| Up Left |
-45 |
Whenever there is a negative value,it means that the sprite is moving anticlockwise.For every positive value the sprit moves clockwise.
Learning
Computers with
Kips