Meet Kiki!
How to Talk to Kiki!
-Comments (Your Secret Notes!)
- What is a comment?
- Think of comments like writing little notes in your story that Kiki doesn't read!
- They are just for you, to help you remember things about your code.
- Kiki just skips over them!
- To make a comment, start the line with
//
(two little lines). - Example:
// Kiki is going to dance now!
(Kiki won't do anything with this line, it's just your note!)
-Commands (Kiki's "To-Do" Words!)
- What is a command?
- Commands are the special **ACTION** words that tell Kiki what to DO!
- Like telling Kiki to
MOVE
or toSPEAK
. - Super Important! Commands need to be in **ALL CAPS** (like when you're really excited!) so Kiki knows they are special instructions.
- Example:
MOVE Kiki to 10 20
(MOVE
is the command here, telling Kiki to go to a new spot!)
-Keywords (The Command's Little Helpers!)
- What is a keyword?
- Keywords are like **little helper words** for the Commands.
- They give Kiki extra clues to understand the Command better. Like telling Kiki *what* to change, or *how much*.
- You don't need to put quote marks
""
around these helper words. - Examples:
- In
SET background to "farm"
:SET
is the big Command word.background
andto
are Keywords (helper words). They help theSET
command know you want to change the background picture, andto
points to the picture named"farm"
.
- In
ROTATE Kiki by 90
:ROTATE
is the Command.by
is a Keyword. It tells Kiki *how much* to spin around.
-Values (The Real Things Kiki Uses!)
- What is a value?
- Values are the **actual things** Kiki uses to do your commands!
- Like the exact words Kiki says, the numbers for where Kiki should go, or a special name for a character or a picture.
- Here are the kinds of values Kiki understands:
- Words in Quotes "" (Text Values):
- If Kiki needs to use words or sentences (like when Kiki speaks, or for names of pictures), you always put them inside
""
(we call these "quote marks"). - Example: In
Kiki.SPEAK "I love coding!"
the value Kiki says is"I love coding!"
. - Example: In
SET background to "party"
the value for the picture is"party"
.
- If Kiki needs to use words or sentences (like when Kiki speaks, or for names of pictures), you always put them inside
- Numbers (Number Values):
- These are just plain numbers, like 1, 2, 3, or 50, or 100! No quote marks needed for numbers.
- Example: In
MOVE Kiki to 10 20
, the numbers10
and20
are values that tell Kiki where to go. - Example: In
WAIT 3
, the number3
is a value telling Kiki to wait for 3 seconds.
- Special Names (for Characters or Pictures):
- Sometimes you'll use a special name for a character (like
Kiki
or maybe one you namedMyRobot
) or a cool picture Kiki knows (likeKikiCat
for a character look, orspace
for a background). - These special names are values too, and you use them *without* any quote marks!
- Example:
SET MyRobot TO SPRITE FriendlyRobot
— Here,FriendlyRobot
is a special sprite name value. - Example:
MOVE MyRobot TO 0 0
— Here,MyRobot
is the value (the name of your character!) that tells Kiki which character to move.
- Sometimes you'll use a special name for a character (like
- Words in Quotes "" (Text Values):
Goal: Your First Script
In this tutorial, you'll write your first script to make Kiki appear and say hello. You'll learn about:
- - Setting a background for the stage.
- - Making a character (Kiki) appear.
- - Positioning Kiki using
MOVE
. - - Making Kiki speak using
Kiki.SPEAK
.
Instructions:
- Look at the script in the text area above. It already sets a background and makes Kiki appear.
- Below the line
MOVE Kiki TO 100 200
, add a new line. - On that new line, type:
Kiki.SPEAK "Hello, Kiki's World!"
- Click the "▶️ Run Story" button.
- Watch Kiki appear and say your message!
If you make a mistake, the story might not run, or Kiki might not do what you expect. Check your typing carefully!