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.
Hi,
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.
drive.google.com/file/d/1TiO0fYw3v7zVe_GcHsmJmYQNpUhlzFNh/view
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.
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.
Develop games in your browser. Powerful, performant & highly capable.
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.
I've included a couple of actions that should make the background music fade out after either getting a game over or on completing the stage, but neither are triggering. I expect something is preventing them from running but I can;t work out what.
Hi, I'm trying to arrange things so that collision with two particular sprites is disabled when a certain animation is playing. I've tried the following but it isn't working:
Here's a link to the test project if necessary: drive.google.com/open