#get_tree().change_scene_to_file() not working correctly

6 messages · Page 1 of 1 (latest)

mossy thicket
#

Hi, I have a main menu scene working fine when starting the game for the first time, but going back to this scene after switching to another scene using get_tree().change_scene_to_file causes everything to freeze (even the shaders). The _ready() function starts correctly but it freezes when trying to interact with an animationplayer node or any other nodes
What could cause this?

modern idol
#

do you use something like get_tree().paused at any point?

mossy thicket
#

Yep

#

Should I unpause before?

#

That works, thanks, I can't believe it was this stupid XD

modern idol
#

no worries 🙂