The Daily Click ::. Forums ::. Klik Coding Help ::. Organizing a whole lot of global strings and global values
 

Post Reply  Post Oekaki 
 

Posted By Message

Verdigriss



Registered
  10/02/2014 00:04:44
Points
  5
14th February, 2014 at 14/02/2014 22:59:35 -

Hey folks,
I'm early in game development and right now things are going okay, but looking ahead I see that I'm going to end up with literally hundreds of global strings and values. Is this okay? Should I organize them somehow, besides naming them very carefully? Should I use some other object to store them, like an ini or an assarray (don't know much about these yet)? I mean, right now, the regular global strings and global values are working just fine for me. I just worry that in the future, a huge list of them might become problematic/unwieldy.

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
14th February, 2014 at 14/02/2014 23:53:52 -

I don't see a problem.
You can check global strings and values quickly in MMF2's/Clickteam Fusion's frame editor or debugger (at runtime for the latter).
Arrays are quite tidy and don't have arbitrary limits on them. I think global strings are limited to 15 or something silly. Or has Clickteam fusion fixed that problem? but you can't quickly open them up and look at them because they're separate files, not a part of MMF2/Clickteam fusion.

To be honest I think most sizable projects end up with a huge amount of values, flags, strings etc. My games are often dotted with global active objects that I use purely for their alterable values.

 
.

Verdigriss



Registered
  10/02/2014 00:04:44
Points
  5
15th February, 2014 at 15/02/2014 19:38:01 -

Okay, that's important to know. I hadn't thought of using global objects to store values. Working with Global Store X right now and it seems to working all right. That helps a lot, thanks.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click