#Why global variable doesn't want to change?
2 messages · Page 1 of 1 (latest)
could be because you have set the variable inside the global script as @onready which means it will set it to the default value before its ready call. and since global nodes are usually higher up inside the scene tree, this probably gets called after the signal gets emitted inside the ready function of the first script.