ScratchData LogoScratchData
Back to Mr_Rhino_Math's profile

3. Clones and Variables

MRMr_Rhino_Math•Created September 19, 2024
3. Clones and Variables
0
0
13 views
View on Scratch

Instructions

This lesson explores clones and variables. Right now, each time you press space bar, a ball is cloned. 1. Use the "Change by y" block to make each clone fall to the ground. 2. Write code that deletes clones after they fall below a y position of -170 3. We want to make the ball at the top of the screen move faster each time the spacebar is pressed. To do that, we need to use a Variable. - In the Variables section, click "Make a Variable" and name your variable "speed". -When the green flag is clicked, [Set "speed" to 3], tell the ball to [move "speed" steps], and [change "speed" by 1] every time space is clicked. 4. Right now, the balls fall right through the box. IF a ball falls into the box, can you count it and delete it? Gravity Challenge: When real-world objects fall, gravity accelerates them: their fall speed increases. Make a variable for this sprite only called "fallspeed" which changes by -1 each time through the "forever" loop and determines how fast the object falls.

Project Details

Project ID1070270715
CreatedSeptember 19, 2024
Last ModifiedFebruary 21, 2025
SharedSeptember 19, 2024
Visibilityvisible
CommentsAllowed