ferdyslab.com
Ferdy's Gamedev Notes #1 - Global variables
Hello, Today, I’ll be writing notes on the importance of using global variables sparingly. What I will be explaining here will be about Godot, specifically using GDScript. To cut to the chase, here’s an explanation of the advantages, disadvantages, why problems with using global variables happen and what potential solutions you can use to fix them.