Breakout game/how to finish a level

0 favourites
  • 3 posts
From the Asset Store
Breakout Bliss design For programming and publishing to other platforms
  • 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.

  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It worked! Thank you very much!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)