Hi,
My game has five levels and is supposed to play a cutscene after a level is completed, just before the next level starts. Using "go to next layout" doesn't work, and using "Go to layout2/3 etc" stops the game from progressing to the next level as it always loops back to that level after the cutscene finishes. How do I get the game to progress through the levels in the right order?
drive.google.com/file/d/1TiO0fYw3v7zVe_GcHsmJmYQNpUhlzFNh/view
Add a LevelNumber global variable. So when you need to go to the next level, increment this variable and use "Go to Layout (By name)" action to go to layout "Level"&LevelNumber
Many thanks, dop2000.
Is there a way to get a different cutscene to play after completing level 5? Even with the new global variable it still plays the one in the included event sheet.
Develop games in your browser. Powerful, performant & highly capable.
Simply compare LevelNumber=5 -> Go To Layout "DifferentCutscene"
Thanks again dop2000. I've noticed a minor issue where the Virus Total and CritterCount text objects look misaligned on level 2. This is the only level it occurs on and I can't work out what's causing it.
Run the project in Debug mode, check if there are double instances of these text objects. Maybe one is on a global layer.
Many thanks dop2000, there was an object on a global layer.