Scratch 60 Seconds -

Add boundary checking to keep player on screen.

when I receive [Game Over v] show say (join [Game Over! Your score was ] (Score)) for (3) seconds stop [all v] Scratch 60 Seconds

if <(x position) > (240)> then set x to (240) end When clicked, the star moves to a random position and adds +1 score. Add boundary checking to keep player on screen

when green flag clicked show forever if <touching (Player v)?> then change [Score v] by (1) play sound (pop v) // Optional: add a "pop" sound go to x: (pick random (-220) to (220)) y: (pick random (-160) to (160)) end end when green flag clicked show forever if &lt;touching

when green flag clicked forever wait (2) seconds go to x: (pick random (-220) to (220)) y: (pick random (-160) to (160)) end Create a "Game Over" sprite that says "Game Over - Your Score: X".

Contact Us