I am trying to figure out how to Open the “Next Level”. I am trying to use a single widget for scoring, my issue is I need it to know which level is currently open and which level should be next. Or else I have to create a scoring widget for every level.
The table idea sounds good, happen to know any good tuts?
So, your problem is to know which one is the next level? And you don’t want to create a new OpenLevel in every level, and manually write the name of the next level?
Have you consider using a table? That way, you could just get the next level, based on the current one.
Thinking again, since it’s only to keep the name of the levels, it would be a lot more easier to just use an array in the game mode.
Since the gamemode instance is easily accessible everywhere, the next level can be called from there:
I like the way this is looking. I will give this a go and let you know. Thank you for your help, much appreciated.
“Since the gamemode instance is easily accessible everywhere, the next level can be called from there:”
Yes this works great thank you again.