0 votes

I have a main menu scene in a game as well as an options scene. There are check boxes in the options scene that can be toggled on and off. However, if a check box is toggled off, the change is not saved (at least the graphic) when i switch back to the main menu and back again.

The options scene and main menu scene have the same script connected to them that handles all the buttons in both scenes.

Here's a video: https://www.youtube.com/watch?v=S4rWvC66yB0

Can you please help me with the code to save the change between scenes?

in Engine by (72 points)
retagged by

1 Answer

0 votes
Best answer

You could probably solve this by hiding the options scene instead of freeing it and instancing it again. This way, it would probably be instanced as soon as the main menu displays, but it would be hidden at first.

by (12,725 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.