Godot Version
4.3
Question
In my root Base
node I have function for transitioning between areas. During the transition it pauses the game.
func _on_goto_area(scene:PackedScene):
get_tree().paused = true
TransitionScreen.fade_in()
await TransitionScreen.faded_in
var new_level=scene.instantiate()
areas.add_child(new_level)
new_level.connect("goto_area", _on_goto_area)
old_level=current_level
current_level=new_level
TransitionScreen.fade_out()
get_tree().paused = false
The TransitionScreen is a global scene.
The problem is that when setting the process mode of node SelectionWheel
in the game ui to When Paused
, the game will no longer pause when transitioning. The game pauses properly again when this node is set back to Inherit
.
The structure looks like this,
Any help would be greatly appreciated