The Daily Click ::. Forums ::. Klik Coding Help ::. Question about MMF, INI and storing data
 

Post Reply  Post Oekaki 
 

Posted By Message

JJ



Registered
  12/08/2002
Points
  15
23rd March, 2006 at 12:03:34 -

Hello everyone,
I used to hang around this kind of place back in the good old days (about 6/7 years ago probably). It's really good to see the community's still going, keep up the good work!
Wow! Code-it has really come a long way, I have no idea what most of the questions are about

Aaaanyway, you know what they say, once a klicker always a klicker, I have never stopped thinking about creating games but I am a bit behind so just wondering if you could answer a question I have.

One of the last things I tried to do was create a football manager game. I wanted to store lots of data globally and then load it and save it between "levels" (screens). For this I used the INI object but IIRC I had trouble because when you load a value you have to switch between groups so I had something like:
time = 0.00 seconds: load group X, load value A.
time = 0.05 seconds: load group Y, load value B.
etc

Was I being stupid? Is there a simpler way to do it? Would this kind of thing it be easier if I bought MMF? (i only have TGF) What is the easiest way for storing lots of global data? Most of the ideas I have for games involves a database or something like that.

Also, on a completely different topic, whats the easiest way to go about making a game involving collisions between balls and accurate angle calculations and ball movement (say, for example, for creating a pool/snooker game), would I be able to do this easier in MMF compared to TGF.

Thanks for reading, sorry if these questions seem a little old, I haven't visited here in so long and the community's come such a long way.

Cheers guys.

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
23rd March, 2006 at 12:07:15 -

I'm pretty sure even in TGF you could change groups and retrieve the values multiple times in one event, you just have to keep track of the action order.

 
n/a

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
23rd March, 2006 at 16:16:46 -

That's right - it's possible, but just needs twice the length of action list compared to MMF because of switching to a group/item and actually retrieving it being two separate actions. It's probably easier to do it in the Action list box (or whatever it's called) itself. I've heard there is an extension for TGF that handles INIs a little more easily, but I can't remember what it was called.

Accurate angle calculations are pretty difficult no matter what you're using, especially for curved surfaces and the fact that you've only got 32 directions to work with by default. There are a number of maths/movement extensions for MMF, though. And another advantage of upgrading is that you can use the Array object to store and retrive a lot of data without using INIs.

 
http://www.davidn.co.nr - Games, music, living in America

JJ



Registered
  12/08/2002
Points
  15
23rd March, 2006 at 16:37:23 -

Yeah I think you can change the groups multiple times, but you can only set an object like a counter to the current INI value, therefore you have to use the timer (corret me if I'm wrong btw, this was like 4 years ago).
So could I do this more easily with the array object? is it global? I'll have a search for an array extension for TGF, cheers for that.

So MMF doesn't provide more help than TGF for +32 directions? That's a shame. I had a brief go with an advanced math extension for TGF once, didn't really give it a chance, I may check it out again.

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
24th March, 2006 at 05:31:07 -

No, no, you don't need timers. Like this:

(Event trigger)
-Ini: change group to whatever
-Counter: Retrieve value from ini
-Ini: change group to whatever
-Counter: Retrieve value from ini
-Ini: change group to whatever
-Counter: Retrieve value from ini
-Ini: change group to whatever
-Counter: Retrieve value from ini
-Ini: change group to whatever
-Counter: Retrieve value from ini

See? Double click the event to view the action list, then make sure the actions are in the correct sequence, and you can do it all in one event.
Even if you couldn't, you wouldn't need a timer because the TGF/MMF runs through the events sequentially.

 
n/a

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
24th March, 2006 at 13:36:28 -

Because it's nonexistant.

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
24th March, 2006 at 15:58:36 -

Ah yes, INI+. It's the same as the built in MMF INI yes?

 
.

JJ



Registered
  12/08/2002
Points
  15
25th March, 2006 at 11:57:20 -

Ok, cheers for the replies guys, I'll check out the non-timer INI thing.
What advantages does INI plus have?

 
n/a

JJ



Registered
  12/08/2002
Points
  15
25th March, 2006 at 15:14:51 -

Wow, thats excellent, I'll download it and give it a go, thanks much!

 
n/a
   

Post Reply



 



Advertisement

Worth A Click