My game involves roughly a dozen "stages" within each "world" of which, there will be at least 10 in total. Going off that, I'm looking at a bare minimum of 120 layouts/stages. When the player completes a stage, I thought the best course of action (given the number of stages in the game) would be to change to a layout for the stage results (completed or failed). In addition, there will be four buttons:
Replay - restart the stage
Stage Select - change the layout to the respective world's stage select layout
Main Menu - change layout to the main menu
Next - change layout to the next level within the world and if no levels remain in the world, go to that world's stage select scene
With the stage select and next buttons....how could I code them so that they're contextual. In other words, if you're on stage 2-4, the next button should take you to 2-5 and the stage select button should take you to the world 2 stage select layout.
I can hard-code each and every condition and result into an event sheet, but not only will that be time-consuming, I'm not sure how badly that would degrade performance.
Thoughts?
Also, to keep track of the score for each stage, I was going to use an array, but again, without hard-coding what cell(s) to modify, I don't know how to be able to update the table contextually per stage completion.