i need help in this one from a post
am i sopose to put this in another frame or the frame where my levels are?
* Upon pressing Button "Save" = ("Ini") - Set Value Val(Edittext$("Age")) to item "Age" in group "Player".
+ ("Ini") - Set String Edittext$("Name") to item "Name" in group "Player".
+ ("Ini") - Set Value X("Active") to item "XPos" in group "Player".
+ ("Ini") - Set Value Y("Active") to item "YPos" in group "Player".
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.
* Upon pressing Button "Load" = ("Edit - Name") - Set text to GroupItemString("Ini","Player","Name")
+ ("Edit - Age") - Set text to Str$(GroupItemValue("Ini","Player","Age"))
+ ("Active") - Set XPos to GroupItemValue("Ini","Player","XPos")
+ ("Active") - Set YPos to GroupItemValue("Ini","Player","YPos")
That should work. But you have to do that with every active object that you want to save.
Use the save game object! Then you can save everything without dealing with INIs.
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.
If you want a really easy option you can use the "Save Frame" action in MMF2. I personally use the associative array object to save all my player data, I don't keep track of enemies in the save file though.
What you posted about doing with the ini object should work really...
If I have the time (school work to do) I'll make an example for you.
Originally Posted by »Ben« If you want a really easy option you can use the "Save Frame" action in MMF2. I personally use the associative array object to save all my player data, I don't keep track of enemies in the save file though.
What you posted about doing with the ini object should work really...
If I have the time (school work to do) I'll make an example for you.