WEBVTT

00:00.000 --> 00:16.000
Hello aspiring programmers. Today we embark on a fantastic journey into the world of scratch.

00:16.000 --> 00:23.000
We'll delve into the magic of sequences and loops, essential tools that bring our digital creations to life.

00:23.000 --> 00:34.000
Imagine programming a character to dance, walk, or even fly, all with a few clicks. Ready to explore? Let's jump in.

00:34.000 --> 00:38.000
Section 1. Introduction to sequences and loops.

00:38.000 --> 00:44.000
Sequences in scratch are like directions on a treasure map, guiding your sprite step by step.

00:44.000 --> 00:52.000
Loops, on the other hand, are magical circles that make actions repeat without you having to tell them every time.

00:52.000 --> 01:01.000
Activity 1. Sequences in action. Let's create a sequence that makes a sprite jump and then say hello.

01:01.000 --> 01:07.000
Steps. Choose a sprite. Select a character for your exciting sequence.

01:07.000 --> 01:18.000
Plan the sequence. Decide the actions, a jump followed by a greeting. Create the jump. Use changey by blocks to simulate the jump up and down.

01:18.000 --> 01:30.000
Add the greeting. Drag a say hello for two seconds block to make your sprite talk. Test and adjust. Play your sequence and adjust the jumps height as needed.

01:30.000 --> 01:38.000
Activity 2. Make your sprite dance. Let's make our sprite show off some cool dance moves.

01:38.000 --> 01:43.000
Steps. Choose a dancing sprite. Pick a sprite that's ready to groove.

01:43.000 --> 01:49.000
Plan dance moves. Think of simple steps like moving left, right, and spinning.

01:49.000 --> 01:56.000
Create dance moves. Use move blocks for side steps and a turn block for spins.

01:56.000 --> 02:01.000
Test your dance. Click your sequence to watch your sprite dance.

02:01.000 --> 02:07.000
Personalize. Feel free to add more moves and experiment with the order.

02:07.000 --> 02:18.000
Section 2. Understanding loops. Loops are like a merry-go-round encoding making actions repeat over and over.

02:18.000 --> 02:25.000
Activity 3. Looping around. We're going to make a sprite jump continuously using loops.

02:25.000 --> 02:36.000
Steps. Choose a jumping sprite. Select a character that can jump. Set up a repeat loop. Drag a repeat block and add move blocks for jumping inside it.

02:36.000 --> 02:42.000
Specify repeat count. Decide how many times your sprite should jump.

02:42.000 --> 02:49.000
Switch to forever loop. Replace repeat with forever to make the jumping endless.

02:49.000 --> 02:55.000
Test your loops. Observe the difference between repeat and forever loops.

02:55.000 --> 02:59.000
Project. Create your interactive story game.

02:59.000 --> 03:04.000
Let's use our new skills to create a racing game or an interactive story.

03:04.000 --> 03:12.000
Example. Racing game plan. Your game. The car should loop around a track controlled by the player.

03:12.000 --> 03:17.000
Set up stage and sprite. Choose a racetrack backdrop and a car sprite.

03:17.000 --> 03:24.000
Create movement loop. Use a forever loop with move and if on edge bounce blocks.

03:24.000 --> 03:29.000
Add player control. Use when key pressed events for speed control.

03:29.000 --> 03:35.000
Test and refine. Adjust the car's movement and speed for a fun experience.

03:35.000 --> 03:42.000
Conclusion. Reflect and preview. You've now mastered the art of sequences and loops in scratch.

03:42.000 --> 03:48.000
These tools help structure your code and make your project's dynamic and interactive.

03:48.000 --> 03:55.000
Think of all the stories, games and animations you can create with these new skills.

03:55.000 --> 04:00.000
Homework. Create a scratch project at home using loops creatively.

04:00.000 --> 04:07.000
You could animate a day in your life or a scene from your favorite story.

04:07.000 --> 04:13.000
Reflection for students. Think about what you enjoyed and what challenged you in today's lesson.

04:13.000 --> 04:18.000
How can you use sequences and loops in your next scratch project?

04:18.000 --> 04:24.000
Maybe there's a dance routine or an action scene waiting to be coded.

04:24.000 --> 04:30.000
Preview next lesson. Next time, we'll dive into conditional statements and variables.

04:30.000 --> 04:37.000
Unlocking even more coding powers. Get ready to level up your scratch skills.

