Hey all! Ok, so I'm trying to make a space invaders clone and an important function freezes after I've restarted the layout/gone back to the same layout. I've done some trouble-shooting and I think it's freezing because of a wait in the function. I found more info on this but I'm unsure how to implement the work around the tutorial mentions.
construct.net/en/tutorials/system-wait-action-63
Here's a capx and pic of the code with the problem (I think.)
dropbox.com/s/zzxr5yztn63wm8g/layoutRestart.capx
Essentially, I want the player to be able to pause the game while playing and be able to press the "Home" button to go back to the main menu. I can do this but if I try to replay level one , the game function freezes. How could I properly code this so it doesn't freeze and is reusable for multiple levels.