Identifier "global" not declared in the current scope

Did you name your autoload “global”? It’s the name that you give the autoload is what you have to call in your code, not the name of the script file.

You can print you autoloads like this:

for autoload in get_tree().root.get_children():
		if autoload != get_tree().get_current_scene():
			print(autoload)

If it’s ok, yours should print something like
global:<Node#73635202458>

1 Like