Skip to content

How would i make it so when pause the game and quit instead of reseting the game it takes me back to a scene #163

Closed Answered by r6915ee
Raptorq1 asked this question in Q&A
Discussion options

You must be logged in to vote

You might need to include a line like this in that moment:

Global.main.wasPaused = false

The pause menu to my knowledge directly checks that boolean. Restarting the level also sets it to false generally, so that variable might be causing the problem because it still thinks that it should be paused, regardless of the actual state of the pause menu.

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
12 replies
@Raptorq1
Comment options

@r6915ee
Comment options

@Raptorq1
Comment options

@r6915ee
Comment options

Answer selected by Raptorq1
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants