Hello, I'm working on a frogger clone for a personal project to learn godot. I've hit an issue while working on global variables, they won't assign their new value to anything.
What I set is that the Global script checks the current difficulty (which goes up after a certain amount of levels) and a function in the global script runs through some ifs and elifs to set the enemy speed and number. Why I'm asking for help is that what is assigned by the function is not used when the speed and number variables are called globally by other scripts.
Github link to current code (issues with Global and enemyArray scripts)
https://github.com/manpaka/debugRepo/tree/main/froggerv1/scripts
I have the difficultly (gameStates) function set in the global script as to keep the amount of code in the enemy instances low, and I'm still trying to clean it up from the grid based movement that was set before.