The Daily Click ::. Forums ::. Klik Coding Help ::. Can someone help me!!
 

Post Reply  Post Oekaki 
 

Posted By Message

/\/\@RCU$ [Modern Game Creations]

GOTW Cheater

Registered
  06/11/2006
Points
  688
29th November, 2006 at 04:13:54 -

How do you make your games factory program remember where you are up to in a game like in the Teh Forum Game it remembers what stage you are up to when you quit. I cant work out how to, i tried using that array thing is tat stupid and tottaly way off, lol guys help me i am stressing out.

Can someone give me a download link to an example of one so i can use that it would be a big help.

Image Edited by the Author.

 
/\/\@R(U$

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
29th November, 2006 at 04:35:55 -

Store and retrieve saved stuff with the INI object...

In the INI object properties, set "./YourSaveFileName.ini" as the INI file to use. This will make sure your INI will be saved in the same directory as your game, instead of the Windows directory (which is VERY annoying).

When you want to do something with the INI file, you first have to do the following:
First, set a group to save your value to. Like a group "Game".
Then, set the current item (this is where specific data is loaded from or saved to the given group), like "level" or "lives" or "did this part of the story".

When you want to save a value to this item in this group, use the "set value" action to save a numerical value, and the "set string" action to save a string.

When you want to load a value into a variable or string object, just set the group and item to the ones where your value or string was saved (no need if it was on this already), and then get the value from the INI in the expression evaluator.

 
Old member (~2004-2007).

/\/\@RCU$ [Modern Game Creations]

GOTW Cheater

Registered
  06/11/2006
Points
  688
29th November, 2006 at 04:51:03 -

Thankyou so much!! ill test it out and ill tell you if i hav any problems

 
/\/\@R(U$

/\/\@RCU$ [Modern Game Creations]

GOTW Cheater

Registered
  06/11/2006
Points
  688
29th November, 2006 at 05:11:30 -

Sorry i tried to do what you said but i am kind of confused, sorry i am not good with the complex areas of game making. Could i trouble you for a small example that i could download and use or not?

 
/\/\@R(U$

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
29th November, 2006 at 05:48:02 -

http://www.create-games.com/article.asp?id=188

 
Old member (~2004-2007).
   

Post Reply



 



Advertisement

Worth A Click