I’m getting error: Parser Error: Identifier not found: current_scene
The global variable current_scene isn’t defined when referenced in scene_a.gd. Global.gd contains the definition of the variable and is supposed to be loaded first through autoload but it isn’t.
I put the debugger on it and find that _ready in Global.pd is called after _ready in scene_a.gd.
This is contrary to doco.
No clue.
In Godot 3.0.6 i’m getting this:
autoload’s _enter_tree()
main scene’s _enter_tree()
autoload’s _ready()
main scene’s _ready()
So it’s different from what your debugger says. What’s your Godot’s version?
In this tutorial, there should be no reference to current_scene in either scene_a or scene_b. They only contain the button signal callback.
You may find it easier to look at the updated version, which has been rewritten to be a bit clearer. When contributors make changes to the docs, they are applied to the latest version, and then backported where appropriate.