browser icon
You are using an insecure version of your web browser. Please update your browser!
Using an outdated browser makes your computer unsafe. For a safer, faster, more enjoyable user experience, please update your browser today or try a newer browser.

Scratch Jumping Game Step 4 @RRIS

Posted by on 21/03/2022

This week the digital leaders learnt how to add an additional obstacle for the sprite to jump over. We used the right click to duplicate the existing obstacle so it had exactly the same code attached. We then added extra code so that the second obstacle appeared later and hid until needed. We tested our games out and made some simple adjustments to the code to make sure that we could jump over the obstacles (like making the sprites glide quicker.)

“It’s very clever that you can copy the code from one sprite to another and just change one a little bit without having to write it all again.”

“There are so many blocks that do lots of cool things, I am definitely going to carry on using Scratch.”

Code for your second obstacle – this one has to hide and then show after 1 second

Comments are closed.