3️⃣Learner Challenge 3

Open this sample code by clicking the See inside button: http://scratch.mit.edu/projects/387119856

Or build the code below:

Here are things to notice:

The light blue sensing block called ask causes the sprite to ask a question and wait for the player to type in an answer.

We used the Variables block called set to assign the player’s answer to the variable called “noun”.

The sprite tells the story when the player presses the space bar. The word the player gave as their answer appears in the story.

Your task:

1. Click the green flag again, but give a different answer. See how the story changes.

2. Add code blocks to make the sprite ask for more words. You’ll need to create more variables.

3. Can you create a code that matches the story you wrote in challenge 2?

Extend: Set the scene for your story. Have your sprite tell the story to another sprite. Can you add an ask block that gets a number and have your sprite move that many steps during your story?

Reflect:

· How might you express yourself in writing and in coding?

· What parts of this challenge were difficult?

· How often did you test your code? What purpose did testing serve?

· What advice might you give to someone who is trying this challenge for the first time?

· Describe your thought process in creating this code.

Last updated