Is that Godot4's autoload bug?!

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By nagne

Look at the linked picture:

https://ibb.co/cC4364H

When i used autoload, didn’t apply global’s var looks like that. So i changed coding not to make “var scores” in my scene and just used “Global.score”. Then, it worked pretty well. But i don’t understand what’s different between “var scores in my scene” way and “Global.score” way. It’s just a bug or one of Godot ways. Plz someone explain me.

:bust_in_silhouette: Reply From: ShatteredReality

I’m not sure why you would think this is a bug. Global and your scene are two different nodes, and so their variables are two separate things

Then, how can i make var in Global to scene’s var. Is it possible?

nagne | 2023-06-06 17:55

I don’t understand what you mean. Do you want to set the values equal?

ShatteredReality | 2023-06-06 18:23

Yeah. I wanna set the values equal. looks like “x = var in autoload’s script”

nagne | 2023-06-06 19:06