Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Fexelitche |
Hi all,
I’m currently learning Godot and trying to make a Space Invader kind of game. However, when setting up some scene management so I could have some persistent storage between scenes, it just inexplicably crashes. Freezes for 'bout a second, then crashes.
TL:DR;
Master
→ SceneChanger
→ PlayerManager
→ CurrentScene
- the game boots and puts in MainMenuScene.tcsn under “CurrentScene” (this part works)
- you press “play” in the MainMenuScene (it breaks somewhere around here)
- the button script goes to the “Master” (yeah ik that kind of naming is not a thing anymore) which is the node that keeps track of all this and the root of everything.
- it gets the PlayerManager (on which the ship-type is set and other run-configuration stuff)
- then gets the SceneChanger to change the scene:
StartNewGameScript:
the signal is set up from the button. It has worked before
SceneChangerScript
When in the main menu, you can see on remote that the main menu scene is added as it should be:
I’ve tried to print-debug the entire thing, line for line, but I got no output at all rn. I’ve also tried restarting the editor (No errors in debug, none of my debug lines in output)!