Okay! I'm re-writing this as I've figured out how to use the ini to save/load a Global Value - This saves which level the player has reached.
But now I also need to save the Hi Score, and the number of lives the player has. Do I do this using the same ini? Do I have to "set" the ini differently when using it to store numerous values? Would it be better to use numerous ini objects..?
You can use the same INI for sure. Do something like
[STATS]
HIGHSCORE = ***
LIVES = ***
OTHER STAT 1 = ***
OTHER STAT 2 = ***
and so on. You just have to reference them correctly
n/a
Deleted User
13th August, 2013 at 13/08/2013 07:51:00 -
Your article is very good ,I agree with your point of view I would also recommend to you that we have the game.
---------------------------------------------------
http://www.d3joy.com/ http://www.sellgw2.com/
I'm not sure I understand how to reference these values though. I have it set up like this:
Start of Frame
Set Ini to "ini"
Set global Value A to value of( "Ini" )
That works for loading Global Value A. But I'm confused about expanding upon this. I can get this far:
Start of Frame
Set Ini to "lives"
... But then am I supposed to just load value of "Ini" like I did before? Because it doesn't know what "lives" is. and it wont let me change "Ini" to "lives" as it's not valid. Sorry I'm pretty new to the ini.
Thanks Lembi. I don't want to sound completely uninformed, but I don't really understand anything about inis, other than they save and load data.
What does Set "file" do? "Group"? "Item"? "Value Item"? "Value Group - item" You don't have to explain all that, but it's just a bit confusing. There's just so much to it.
So I need to separate everything into groups...
Start of Level
-Set current file to "ini"
-Set current group to "level"
-Set Global value A to value of( "level" )
The expression editor doesn't like that. I'm lost... Is there a tutorial for beginners somewhere?
Also if you are working on saving/loading i would advise taking the time to look at the Array object and learn ho to use it, it is much more versatile and much more secure than ini's however it is harder to get on with if your new to saving etc.