Download

Global Variables

I know they’re bad but can someone explain how to make one? I can do it within modules but getting them to work between modules seems very difficult. If I could just get some globals then everything else in my project would be made so much easier.

I figured it out for my case I think, at least I got it to compile. Whatever file you decide to create your external variable in it needs to have that file’s MODULE_API macro after the extern keyword but before the variable type. After that I could just reference it anywhere. Yay for Bad but easy coding practices :smiley: