3 of 1 ·Interactive character

Lesson 3 · Creative Coding
Mini project: a character that reacts to you.
Events & Actions
An event starts an action. Clicking a character can make it say Hello. First connect one event to one action; add keyboard movement after that works.
Click to zoomYour first thing that respondsTime to put events to work. You're going to build a character that reacts to you — to clicks, to keys, to what you do.
This is the moment programs stop being demonstrations and start being interactive. The character won't do anything until you do something first.
Keep it small. One sprite, four or five reactions, done well.
Click to zoomReactions are events plus actionsEvery reaction has the same two parts you already know:
Event (what the player did) → Action (what the character does).
Click it → it jumps. Press space → it spins. Press H → it says hello.
That's the IF/THEN shape from Chapter 4 wearing a new costume. The event is the condition; the action is the then. You already know how to design this — you're just building it now instead of writing it on paper.
7 more parts in this lesson
Walkthroughs, code labs, mini-games and the checkpoint quiz unlock when you buy the course.