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.
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.
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.
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.
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.
Want to print your doc? This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (