I need to pause a scene and unpause a previus one when the left arrow is pressed, the question in reseting every time i go back to the previus question and come back, how do i do that ?
No, you can’t pause one scene and unpause a different one. In GDevelop, scene pausing works like a stack — you can only pause the current scene and unpause the most recently paused one.
You’ll want to use global variables to keep track of the previous question’s state if needed.
Think of scenes like tennis balls in a tin: only one ball (scene) can be in your hand at a time - the current scene. When you pause a scene and start a new one, you’re putting the ball you’re holding (the current scene) into the tin and picking up another ball (starting a new scene).
- You can only add a new ball (scene) to the top of the tin (pause the current scene and start a new one).
- You can only remove the top ball (scene) to resume it after ending the current one.
- You cannot pull out a ball that’s underneath another one or insert a ball lower down.
In short: you can only interact with the top scene — the most recently paused one.