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
Hi MrClifford,
Thank you so much for this, it takes me ages to really 'get' some of this stuff, you've been a great help. :)
Hi eleanorjmorel,
Thanks for your reply, the game's still very much a work in progress.
I tried using the 'on start of layout' system condition but it's still displaying the variables for the previous level.
I want to increase the 'virustotal' and 'crittercount' global variables for each level, but can only get this to work for the second level by adding an action in the first level's event sheet. I've tried adding on end of layout and set/add to global value but the variables won't change on triggering the third level.
Hi blackhornet,
Thanks for the reply. Moving the On created event and unticking Global makes the critter sprites respond once a new layout has triggered, but they're still invisible.
Develop games in your browser. Powerful, performant & highly capable.
Thanks blackhornet, I'm not sure how I overlooked that. I think I'm still missing something though as the critter sprites still don't move once a new layout's triggered.
Activating the Critter group on start of layout makes the critter sprites disappear as soon as the 'go to next layout' is triggered for some reason. The sprites are still there as they appear briefly on getting a game over, but I can't get them to reappear.
When a 'go to next layout' event is triggered in my game, the 'critter' sprites no longer move or respond in any way, despite all other sprites and events working normally. As usual I find work out what's causing this, despite spending several hours messing around with the event sheet.
You do not have permission to view this post
Thanks savvito123 and bartalluyn, I found the problem. I'd accidentally left two "set global value" actions earlier in the script. I've removed them and it's working now.
Is there a way to change various Global Variables between layouts and their event sheets? I've added a second layout and have been hoping to use the original event sheet, but can't seem to use or alter the existing Global Variables.
Hi bartalluyn,
Thanks for the advice. I've tried your method using "compare variable" but for some reason everything freezes after the celebration animation plays and the last two events don't trigger. I might be implementing it wrong as I'm still very much a beginner.
On clearing a level the main character is supposed to play a 'celebration' animation before leaving the screen, but the animation loops endlessly even though 'loop' is unticked and events 53 and 54 never happen.
How do I get it to stop lopping and trigger the remaining events?
Many thanks, dop2000.