I have a problem with all the variables I have in an autoload script. In fact, the variables are initialized like this:
in the script of the autoload. Playing, these variables are changed from other scenes with normal assigns like this:
Globals.point=2 #Globals is the autoload's name
When I try to print the value of the variable, in this case, I expect to see a 2. Instead when I try to print it in a _process function, it shows me something like that:
It seems to print me each time the initialization value of the variable and the new value.
If I try to add to the code something like this:
It prints me:
How can I solve that?