Pages: 1
Topic closed
So i am making a brick breaker game and i've gotten everything except when all the bricks are gone the backround changes to say "you win." If you would please answer, it would be greatly appreciated.
Offline
Use a broadcast.
Add the following script to each sprite:
When [broadcast] received:
|hide|
Then add to the Stage:
When [broadast] received:
|switch to [background]|
Then, when you run |broadcast [broadcast]|, all the sprites will hide and the background will change.
Offline
Just have it broadcast when that happens...for example, you could have it so that every time it hits a brick, it changes a variable by one...then you have the "When I receive" set to the total number of blocks. Have the ball broadcast the variable (you might have to use a join block to do so) to set it off.
Offline
Let me elaborate on what was said above.
Create a variable, named "bricks gone".
Insert this code after the code to hide each brick:
Offline
Topic closed
Pages: 1