Skip to content
06. Scratch Programming Game Creation

icon picker
Application Based Questions

Prepared by: learnloophq@gmail.com
Last edited 10 days ago by Learn LoopHQ.

Chapter: 06. Scratch Programming Game Creation

You want to create a Scratch project where a special shape is drawn every time you click a specific spot on the stage. What sequence of blocks would you use to make the drawing start at the mouse’s click location?
To make the drawing start at the mouse’s click, you would begin with the when mouse clicked event block. Immediately following that, add the go to mouse-pointer block to move the sprite to the click location. Then, use the pen down block to start drawing and place your shape-drawing script (e.g., a repeat loop with move and turn blocks) after it. ​
PlantUML Diagram
You’re developing a game where a character needs to pick up items (like garbage) from the screen. How would you program the “picking up” action, so an item disappears when the character touches it and a score increases?
For each “garbage” sprite, attach a script that starts with a forever loop. Inside this loop, place an if...then block with the condition touching [main character sprite]?. If the condition is true, use the hide block to make the garbage disappear and a change (score) by 1 block to update a score variable, ensuring a set score to 0 block is used at the start of the game. ​
PlantUML Diagram
You want your Scratch sprite to ask the user a question, like “What is your favorite color?”, and then use the user’s typed answer in a speech bubble. How would you set up this interaction?
To set up this interaction, first use the ask "What is your favorite color?" and wait block from the Sensing category. This block prompts the user and pauses the script until an answer is typed. Then, to display the user’s answer, use the say (answer) for ( ) seconds block, where the answer block from Sensing holds the user’s input. ​
PlantUML Diagram
You want to make a beetle sprite continuously move back and forth across the stage, make a sound each time it changes direction, and also visually change color as it moves. How can you combine motion, sound, and visual changes in a continuous loop?
Start the script with when green flag clicked and enclose the main actions within a forever loop. Inside, include move ( ) steps for forward motion. To change direction and make a sound, use if on edge, bounce and start sound ( ) when it hits an edge. Incorporate next costume and change color effect by ( ) for continuous visual changes, and use wait ( ) seconds to control timing between movements. ​
PlantUML Diagram
You have a game where a character moves between different scenes. How would you program the stage to change its backdrop and have the character appear in appropriate new positions for each scene?
To change backdrops and reposition the character, use a sequence of switch backdrop to ( ) blocks from the Looks category. After each backdrop change, use go to x: ( ) y: ( ) from Motion to set the sprite’s new starting position for that specific scene. You can add wait blocks between backdrop changes if you want to control the pacing of the scene transitions. ​
PlantUML Diagram
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.