Page 91 - TP_Play_V2.1_class5
P. 91
Step 2: Click on Choose a Sprite button to insert a sprite, Penguin2 on the stage.
Delete the cat sprite.
Step 3: Click on Choose a Backdrop to add a new backdrop to the stage, Arctic.
4
1 5
3
2
Step 4: Now drag the ask block from Sensing category to the script area. Click
on the block. A speech bubble appears above the penguin with the text,
“What’s your name?”.
You will also see an input box on the stage with a blinking cursor. Type
your name. It will appear in the input box. Click on the tick button or press
the Enter key. You will notice that the input box waits for your input.
Also, when you type the name and press Enter key, the name disappears.
Step 5: To display the typed name also, click on the check box before the answer
block. The answer appears on the stage.
You can also place the answer block in the say block. It
will look something like this.
Snap Say block from Looks category to the
ask block. Now drag answer block from
Sensing category to the first text box. Now
click and see what happens. Penguin speaks
the name for the given number of seconds.
You can change the question in the ask
block to any question of your choice. Click
on the text box and type the question.
Suppose, you have to code a dance party in Scratch where characters
keep dancing in a loop until stopped? Which block will you use for this
and which songs would you play in the program?
Creating a Game in Scratch 89

