[Plugin] Globals

Post your completed addons to share with the community

Post » Tue Sep 12, 2017 6:18 pm

I have read article and I use Global2.0, thanks)
Forgive for my English. I mean that global variables in comparison with instans variables can strain the processor very much. I try to avoid them for this reason.
B
25
S
10
G
3
Posts: 10
Reputation: 3,251

Post » Tue Sep 12, 2017 6:24 pm

Variables (any kind) are one of the most basic elements in any programming language. Normally varaibles are actually just pointers (a kind of arrow that points the RAM area of where the data is stored), in Construct they're a bit more complex as they go via event sheets but still variables are the lightest elements I can think of. So no matter if it's a global or local or instance variable, they do not affect the CPU, no worries about that.
ImageImageImage
B
36
S
21
G
88
Posts: 1,072
Reputation: 49,673

Post » Tue Sep 12, 2017 6:43 pm

It is clear, many thanks for the answer.
(Probably all the matter is that the wrong code and global variables can create more problems, than instans)
B
25
S
10
G
3
Posts: 10
Reputation: 3,251

Post » Mon Oct 02, 2017 11:58 am

Thanks for the plugin! I only wish you published it a year ago.. (Or at least that I found it sooner)

Any advice on how to quickly replace lots of global variables with Globals.variables in a big project?
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
17
S
9
G
125
Posts: 1,741
Reputation: 66,803

Post » Mon Oct 02, 2017 1:00 pm

dop2000 wrote:Any advice on how to quickly replace lots of global variables with Globals.variables in a big project?


I must say I hear this question very often but I'm afraid there is no magical way to speed up this process. You have to do it manually. All I can say is that it's worth it (unless the project is nearly finished) no matter how big your project is, cause it will benefit your future development.

Good luck ;)
ImageImageImage
B
36
S
21
G
88
Posts: 1,072
Reputation: 49,673

Previous

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 5 guests