Now, we are going to practice drag and drop coding through Scratch. Follow your instructor through this in-class activity on your own Scratch accounts:
- Log into Scratch and create a new program. Name your activity: Meet a Sprite
- Click the add backdrop button in the bottom right of the screen. Choose the ‘Boardwalk’ background.
- Click ‘Events’ on the left sidebar and drag the ‘When Flag Clicked’ onto the grey area.
- Next click ‘Motion’ on the left sidebar. Find the block labeled ‘move,’ drag it onto the grey workspace, and insert the number of steps you would like.
- Go to ‘Looks’ on the left sidebar. Drag the ‘Say Hello For Two Seconds’ onto the workspace.
- Under the same ‘Looks’ category, drag another ‘Say Hello For Two Seconds’ onto the workspace. This time, edit the text inside to say ‘My name is ___.’ Fill in the blank with a name of your choice.
- Click on ‘Control’ on the left and add a ‘Wait’ block on the workspace.
- From ‘Sensing’ on the sidebar, drag and drop the ‘Ask and Wait’ Block onto the workspace. Edit the text to say “what is your name?”
- Insert another ‘wait’ block underneath.
- Finally, under ‘Looks,’ drag and drop the ‘say hello for two seconds.’ Edit the text to say “It’s nice to meet you!”
CONGRATULATIONS!! You just worked with block-based programming and created
your own code :)
Copyright © 2021 Code 4 Tomorrow. All rights reserved. If you would like to use content from any of our courses, you must obtain our explicit written permission and provide credit. Please contact firstname.lastname@example.org for inquiries.