Breakout game/how to finish a level

Get help using Construct 2

Post » Thu Nov 21, 2013 4:07 pm

Hello, I am making a breakout game and I don't know how to finish a level, I have created few sprites, bricks of different color that are destroyed on certain number of hits with the ball. How do I add event when "brick1" ,"brick2", "brick3", "brick4" and "brick5" are destroyed, go to other layout? I can do that if there is just 1 type of brick, but I don't know how to do it when there are multiple bricks involved? I presume it can be done by "families", but I have free version of Construct 2. This is only my first game and I want to get better at Construct 2 before purchasing a full version..is there a way to do it in free version?

Thank you in advance.
B
3
Posts: 2
Reputation: 179

Post » Thu Nov 21, 2013 4:14 pm

Just add conditions for all brick types.

so:

System compare two values : Brick1.count = 0
System compare two values : Brick2.count = 0
System compare two values : Brick3.count = 0
System compare two values : Brick4.count = 0
System compare two values : Brick5.count = 0
System compare two values : Brick6.count = 0
- System goto layout level2

you will only goto the new layout if all these condoitions are met, so if all instances of all bricks are destroyed.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Nov 21, 2013 5:35 pm

It worked! Thank you very much!
B
3
Posts: 2
Reputation: 179


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, Google [Bot], ignaciosimo and 49 guests