Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » A Bricks Breaking game
- DolphinHeart7
-
73 posts
A Bricks Breaking game
Hi. I'm working on a Bricks Breaking or Breakout game. There are bricks in set places (they are clones) and a ball. If the ball hits a brick, it disappears (the clone is deleted). I only give three balls to use to get rid of all the bricks. If they don't get rid of all the bricks it goes to a “game over” page.
Here is my question… If there are bricks that weren't hit, they show on the game over page. I don't want them to show. I haven't found a “delete rest of clones” block. Please advise me. Thank you.
Here is my question… If there are bricks that weren't hit, they show on the game over page. I don't want them to show. I haven't found a “delete rest of clones” block. Please advise me. Thank you.
- WolfCat67
-
1000+ posts
A Bricks Breaking game
You can simply make it so that when the main brick receives the Game Over message, then it will hide. It SHOULD hide all of the clones… If not make a Variable that changes from 0 (false) to 1 (true) once the game is over, and make a
Hope this helps!
script.
Hope this helps!
Last edited by WolfCat67 (Sept. 24, 2016 01:18:04)
- asivi
-
1000+ posts
A Bricks Breaking game
There isn't a block for rest of, but if you send a broadcast saying game over
probably all of those clones will be deleted.
- DolphinHeart7
-
73 posts
A Bricks Breaking game
Will that work if there are more than one clone left? I'll try it.
- Discussion Forums
- » Help with Scripts
-
» A Bricks Breaking game