Part 1 · Warm Up: A Series of Events
🎯 Today I can…
- make new sprites and give them costumes and locations.
- make a sprite say things in a speech bubble.
- use events, like a click, to make my sprites do something.
💭 Reflect
How do we use sprites in our programs? Think about the fish tank from our last lesson.
👆 Tap to finish the sentence.
🔍 Let’s find a pattern
- When you flip a switch, the lights turn on.
- When you tap on a device, an app starts.
- When the alarm goes off, you get out of bed.
The pattern: When (event), (action).
The event comes first. It causes the action to happen.
🗂 Sort it! Event or action?
For each one, choose: is it the event (what happens first and causes something) or the action (what happens because of it)? Then press Check my sorting.
🤔 A new meaning for “event”
Most days, “event” means a field trip, a competition or a birthday party. Today we learn a computer science meaning. Which one is an event in computer science?
Part 2 · Today’s Vocabulary
Tap each card to flip it. Read the meaning and the example, then flip it back and say the meaning in your own words.
Orange cards are words from our last lesson that you will use again today.
Part 3 · Events in Sprite Lab
Today you will make sprites say things in speech bubbles, like in a comic book. You will also make them answer when someone clicks them. Turn blocks on and off, then press ▶ Run. Click the robot!
Choose the blocks
The program
💡 Two kinds of code
Code under when run happens right away, in order, when you press Run. Code inside an event block (like when clicked or when touches) waits until that event happens. The event causes the action.
Predict, then test
Choose your prediction. Then use the blocks above to test it before you press Check.
Part 4 · Hello World on Code.org
Goal: Make an interactive world with fun sprites. Make them say things, and make them answer when they are clicked.
Do this: Follow the instructions on each level. Finish all the skill-building levels before you move on. Then tick the box.
Sign in to Code.org with your class login first. Open the whole lesson on Code.org ↗
🙋 Stuck? Try these first
- Read the instructions again, slowly.
- Look for hints. Each level has a hint that tells you which blocks to try.
- Ask a neighbour to look at your screen with you.
- Take your time and try your own ideas.
⭐ Finished early? (Level 14)
- What other sprites could you add?
- Have you looked at the costume library, or drawn your own costume?
- What else could your sprites say?
- What should your sprites do when they are clicked?
Want to press Share? Ask Mr. EdLo first.
📶 Code.org will not load?
Tell Mr. EdLo straight away. Part 5: Hello World Builder works without the internet. It is always open, so tap it in the part buttons and practise there while you wait.
Part 5 · Hello World Builder
Here is a program with one robot. Modify it to build your own interactive world. Choose what each sprite says, and what it does when it is clicked or when it touches another sprite. Then press ▶ Run. Finish all 5 challenges!
🏆 Challenges
My program
Part 6 · Wrap Up: Reflection
1. What did you learn today about sprites? 👆 Tap to finish the sentences.
2. How do events work in your code?
3. ✏️ Type ONE short sentence: what did your sprites say or do?
Example: “My robot says hello and the cat says meow when I click it.”
Part 7 · Lesson Quiz
10 questions · You need 7 out of 10 (70%) to pass. If you do not pass, review the lesson parts named in your feedback and try again. Every attempt goes to Mr. EdLo’s record book.