G
GOD-sSs-END
Guest
Here's a fun question for you gurus out there: At the instance level, is it better to change a global variable directly or via function when possible? Or is there no difference. Here's the scenario.
I have a button that, when clicked, hides a layer by changing the value of global.ins_panel from false to true, declared in the game controller in my game-initializing room. I can do this two ways:
1) directly using global.ins_panel = true;
2) or by function using layer_set_visible(global.ins_panel, true);
Option 2 requires global.ins_panel = layer_get_id("ins_panel");
Is one option better than the other in any way(s) at all???
I have a button that, when clicked, hides a layer by changing the value of global.ins_panel from false to true, declared in the game controller in my game-initializing room. I can do this two ways:
1) directly using global.ins_panel = true;
2) or by function using layer_set_visible(global.ins_panel, true);
Option 2 requires global.ins_panel = layer_get_id("ins_panel");
Is one option better than the other in any way(s) at all???