
Week 02 β Sequences & Events
Welcome & Review (5m)
Exercise 1 β Sprite Reaction (10m)
Task
Make the sprite say your name when clicked.
Code
WHEN this sprite clicked
SAY "Hey! You clicked me!" for 2 seconds
Exercise 2.1 β Keyboard Events (20 minutes)
Task
Say “Meow” when space key is pressed.
Code
WHEN space key pressed
Play sound Meow until done
Exercise 2.2 β Arrow Key Movement (20 minutes)
Task
Move sprite when key is pressed.
Code – Right Arrow
WHEN right arrow key pressed
CHANGE x by 10
Code – Left Arrow
WHEN left arrow key pressed
CHANGE x by -10
Code – Up Arrow
WHEN up arrow key pressed
CHANGE Y by -10
Code – Down Arrow
WHEN down arrow key pressed
CHANGE y by -10
Exercise 3 – Mini Challenge (10 minutes)
Task
Make a program where the sprit moves and talk
Sequences & Events
Sequences
A sequence is the order in which instructions are executed in a computer program. Just like following steps in a recipe, a computer performs commands one after another in the exact order they are written. If the order changes, the result may also change. Understanding sequences helps to learn how to organise instructions logically so that a program behaves as expected.
Events
An event is something that triggers a program to perform an action. In many programs and games, actions happen when a specific event occurs, such as clicking a button, pressing a key, or starting the program. Events allow programs to respond to user input and make applications interactive. By using events, students can create programs that react to what the user does.
π Letβs Talk Tech:
NZ: Uditha β βͺ(+64) 020 458 4422β¬ | uditha@agilemind.nz