Lesson 2: Turn, Glide & Change Direction
๐ฏ Learning Objectives
By the end of this lesson, students will be able to:
- Make a Sprite turn clockwise and anticlockwise.
- Understand direction in Scratch.
- Use turn, point in direction, and glide blocks.
- Control where a Sprite moves on the Stage.
- Create a simple movement animation.
๐ 1. Turn Your Sprite
A Sprite can rotate using the Motion blocks.
The two basic turn blocks are:
- turn โป 15 degrees
- turn โบ 15 degrees
A positive turn rotates the Sprite clockwise, while the other turn block rotates it in the opposite direction.
Example
when green flag clicked
turn โป 30 degrees
move 50 steps
Run the program and observe how the Sprite changes direction before moving.
๐งญ 2. Point in a Direction
Scratch also allows us to tell a Sprite exactly which direction to face.
Use:
point in direction 90
Scratch commonly uses these directions:
| Direction | Meaning |
|---|---|
| 90ยฐ | Right |
| -90ยฐ | Left |
| 0ยฐ | Up |
| 180ยฐ | Down |
Example
when green flag clicked
point in direction 90
move 100 steps
The Sprite faces right and then moves forward.
๐ 3. Glide Your Sprite
The glide block allows a Sprite to move smoothly from its current position to another position.
Example:
when green flag clicked
glide 2 seconds to x: 200 y: 0
Instead of jumping immediately to the new position, the Sprite travels smoothly.
Compare:
go to x: 200 y: 0
โ Sprite moves immediately.
glide 2 seconds to x: 200 y: 0
โ Sprite travels smoothly over 2 seconds.
๐ฏ 4. Create a Simple Glide Animation
Try this:
when green flag clicked
go to x: -200 y: 0
glide 2 seconds to x: 0 y: 0
glide 2 seconds to x: 200 y: 0
Your Sprite will travel from the left side to the right side of the Stage.
๐ 5. Change Direction
Now combine turning and movement.
when green flag clicked
point in direction 90
move 100 steps
turn โบ 90 degrees
move 100 steps
The Sprite moves in one direction and then changes direction.
๐ฆ Mini Project: Make a Square
Let’s use direction and movement to create a simple square path.
when green flag clicked
move 100 steps
turn โบ 90 degrees
move 100 steps
turn โบ 90 degrees
move 100 steps
turn โบ 90 degrees
move 100 steps
turn โบ 90 degrees
The Sprite will travel around a square.
๐ก Think: Why do we turn 90 degrees each time?
Because a square has four corners, and each corner creates a 90ยฐ turn.
๐งช Student Practice
Create a project where your Sprite:
- Starts on the left side.
- Faces right.
- Glides to the center.
- Turns 90 degrees.
- Moves forward.
- Says โI changed direction!โ
Try changing the glide time from:
- 1 second
- 2 seconds
- 3 seconds
Observe how the movement changes.
โญ Challenge
Create a Mini Car Animation ๐
Your Sprite should:
Start โ Move Right โ Turn โ Move Down โ Turn โ Move Right
Try using:
point in directionmoveturnglidewait
Bonus
Add a backdrop such as a Road or City and make your Sprite look like it is travelling through the scene.
๐ Quick Revision
| Block | Purpose |
|---|---|
| Move | Moves the Sprite forward |
| Turn | Rotates the Sprite |
| Point in Direction | Sets the Sprite’s direction |
| Go To | Moves immediately to a position |
| Glide | Moves smoothly to a position |
| Wait | Creates a pause |
๐ฏ Practice Project
Project Name: Scratch_Turn_Glide_Practice
Your final project should demonstrate:
โ Movement
โ Turning
โ Direction
โ Gliding
โ Waiting
โ At least one dialogue message
ย