SO CLOSE!!!

pyromcrpyromcr Member Posts: 2
edited November -1 in Working with GS (Mac)
I almost have my breakout game done, but I cant figure out how to make the game recognize when there are no bricks left and go to the next scene. The change scene feature works, but how do you make it realize when there are no more bricks on the screen?!

Thanks!

Comments

  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    Start with a count of the number of bricks you have. Then on the brick actor(s) when it is destroyed also include a Change Attribute behavior that decrements the count by 1. When the rule sees that that counter attribute is less or equal to 0, do your change scene.
Sign In or Register to comment.