Discuss Scratch

DolphinHeart7
Scratcher
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.

WolfCat67
Scratcher
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
foreverifGameOver=1thenhide
script.
Hope this helps!

Last edited by WolfCat67 (Sept. 24, 2016 01:18:04)

DolphinHeart7
Scratcher
73 posts

A Bricks Breaking game

I'll try that. Thanks.
asivi
Scratcher
1000+ posts

A Bricks Breaking game

There isn't a block for rest of, but if you send a broadcast saying game over
whenIreceivegame overdeletethisclone
probably all of those clones will be deleted.
DolphinHeart7
Scratcher
73 posts

A Bricks Breaking game

Will that work if there are more than one clone left? I'll try it.
DolphinHeart7
Scratcher
73 posts

A Bricks Breaking game

That worked. Thanks!

Powered by DjangoBB