Each level has a time limit. Once that time limit reaches 0, I want to move to the next layout. Currently the event I use to do this is:
Each tick: LevelLength = LevelLength - dt
Compare: LevelLength <= 0 go to Level2.
LevelLength is global variable that gets set with a new value at the beginning of each layout. Level 2's event sheet includes level 1's event sheet. I have the same condition in level 2:
Compare: LevelLength <= 0 go to Level3.
But for some reason Level2 just repeats endlessly.
"Level 2's event sheet includes level 1's event sheet"
Maybe that's why.
You should have the "mechanics" events in an event sheet that you could include in every level's sheets.
Then, for the ending and those kinds of "links" between layouts, handle them in each level's sheet.
Develop games in your browser. Powerful, performant & highly capable.
Thanks Kyatric that was the problem. I just might finish on time for the contest.