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.
Edited by the Author.
DaVince This fool just HAD to have a custom rating
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.