The Daily Click ::. Forums ::. Klik Coding Help ::. Saving on TGF? (All levels)
 

Post Reply  Post Oekaki 
 

Posted By Message

Professor



Registered
  05/06/2005
Points
  227
25th November, 2005 at 05:52:02 -

Is there a way to save game and load on TGF? And I mean all levels, not just 1 level. I want to be able to create a save system wherein you can load at the 1st level and go to the level where you last saved. Can the INI do that or some other extension I need to get?

 
n/a

Fragasnap



Registered
  27/07/2005
Points
  423
25th November, 2005 at 07:01:34 -

If I understand your question, INI should be able to do that. Maybe something like, if counter equals 2, unlock levels one and two.

 
n/a

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
25th November, 2005 at 12:05:57 -

In TGF, though, you have to perform these actions:

(Event):
Set INI file to [the name of the file to save to]
Set INI Group to [Group]
Set INI Item to [Item]
Load the value of this item into a counter

And then check the counter for the value. I don't think that calculating directly from an INI file works (it didn't in MMF1.0, anyway).

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

Silverdrake [Draconianware]



Registered
  14/08/2005
Points
  716
25th November, 2005 at 16:06:44 -

INIs in tgf dont have to have "set item blah to blah" stuff.

 
If you must touch the dragon, just be wary. It'll bite your hand off.

Nothing, Ok?



Registered
  14/05/2004
Points
  199
25th November, 2005 at 18:18:42 -

Yes it have?

 
Is Nothing, Ok?

http://www.ohwriters.com/

http://www.ohwriters.com/

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
25th November, 2005 at 20:49:18 -

ini's are the same in TGF and MMF.

but it's dead easy to do something like this.


at the end of each frame save the frame number to a group or item thenuse that value to set the frame on the title screen. EASY!


in the event editor

1. start of frame , set currant file to appdrive$ + appdir$ + "save.ini"
(this makes the ini save in the same folder as the game rather than your windows folder.)

2. make a group called save that is NOT active when the level starts (right click it and untick the option)

3. outside of that group make it activate the group when the character hits the end of level flag or right edge of the screen (whatever your game does)

4. inside the group make lots of always events

always, set currant group to "mysave" (the name can be anything)
always, set currant item to "save" (the name can be anything)
always, set value to frame number
always, next level


this should now have saved a file in the game folder with the frame number and the group and items names in a list.


then on the title screen you will probably have a load option that does nothing, well now make a group similar to 'save' (not active but activates when load is chosen from your game menu or whatever)

always, set currant group to "mysave" (the name can be anything)
always, set currant item to "save" (the name can be anything)
always, goto frame number ini value,
(goto storyboard controls> jump to level> use a calculation> retrieve value from item> right click ini and chose get value)

done!

 
.

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
26th November, 2005 at 04:36:59 -

INI's in MMF are NOT the same. In TGF you have to set the groups and items before loading, but in MMF you can do it in one action

 
n/a

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
26th November, 2005 at 16:26:29 -

Yes you do.

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

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
26th November, 2005 at 18:41:02 -

I'm pretty sure you do.

Image

Image Edited by the Author.

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

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
26th November, 2005 at 19:43:03 -

or right, they are slightly different.

it'll be easier for him to use then

 
.
   

Post Reply



 



Advertisement

Worth A Click