M
Matthew Hoinville
Guest
I have a persistent invisible object called obj_game that controls most everything about my game:
Which button is pressed, whether or not we're in a cutscene, how far we've gone along in the story, and whether or not the game is paused.
[for example, if the variable global.paused = 1, the game is paused]
I have variables for all of this. Now, I'm trying to decide whether objects should call to these variables straight from the object or from a global variable. It doesn't affect my workflow in the slightest: it's simply a matter of choosing whether to write global.[variable] or obj_game.[variable]
What I want to know is: which one would run faster?
Which button is pressed, whether or not we're in a cutscene, how far we've gone along in the story, and whether or not the game is paused.
[for example, if the variable global.paused = 1, the game is paused]
I have variables for all of this. Now, I'm trying to decide whether objects should call to these variables straight from the object or from a global variable. It doesn't affect my workflow in the slightest: it's simply a matter of choosing whether to write global.[variable] or obj_game.[variable]
What I want to know is: which one would run faster?