How would you go reset your main game scene once the game is over? The game loop once the game is over is: main game → menu (then play again) → main game. How would you do this so that you reset the game scene but also go back to the menu?
I read your topic properly, you want to add a button for replay the main game in the menu scene.
Same change scene to the main game when the try again button pressed.
That works, but I need to reset the main game scene as well, because once I go back to the menu and play again, the same screenshot I sent before happens
In the project settings, I not think you are using a Global script. Anyway, I think it is a problem with spawning codes not changing or resetting scenes. So check everything properly?
Also, does ‘reload_current_scene()’ reset everything, or just the main scene? Would I need to reset the player scene, enemy scene, etc that are child nodes of that main scene?
Sorry I means “think”, actually I am typing in mobile as I am out of home.
‘reload_current_scene()’ changes everything in the current or main scene. Otherwise if you want to change to menu when game is over and back to main scene when try again, then you can just use the change scene codes.
I’m using C# with Godot and was having similar issues when trying to reset my main scene. One issue I found was that signals were still connected to “old” nodes that had already been removed from the scene tree. After finding those problem nodes, I’m disconnecting signals in code as they exit the scene tree. Hope that helps.