Hey guys, first off there are no screen shots because I’m only looking for generic suggestions. I am making a game that has 10 levels (to start with). I want a button on the home screen called “Play” where the player can open the game, click the Play button, and it will take them to the first level they have not yet cleared. Would it be best to use an array, or? I have no ideas how to have that button play the next unfinished level of the game.
In regards to levels, I have created a select level screen that uses a structure array with 10 boolean children. As level1 is completed it marks the first child of my structure array as true, and so on with the other levels. The select level screen uses that array to darken out any level whose boolean value is false. This all works properly, but I don’t think that particular array would be helpful here unless someone knows a way to have it play the first level with a false boolean value? Given I have no other arrays or global variables set up yet, and I doubt this array will help, I chose not to insert screen shots. I just need to know how such a thing can be done.
I had the idea of having each level add it’s level number as a number in a structure array. And then having the game get the highest number in the array, add 1 to it, and play that level. But then I don’t really know how to do any of that yet. PLEASE HELP WITH IDEAS! AND THANK YOU!