This site requires JavaScript, please enable it in your browser!
Greenfoot back
RevoltecX7
RevoltecX7 wrote ...

2018/8/12

Save the progress.

RevoltecX7 RevoltecX7

2018/8/12

#
Hi guys, Is there any function for save my ints from map(for save/load system)? I want save to some txt document my level,coins,stats about character. And after when I close program, I would like to be able load it back. Thank you for help, and hope it's understable.
Super_Hippo Super_Hippo

2018/8/12

#
How many ints do you need to save?
RevoltecX7 RevoltecX7

2018/8/12

#
xp/level/health/mana/damage/coins/... more that 10 i think
Super_Hippo Super_Hippo

2018/8/12

#
You can save quite a bit with the UserInfo class. You can use one int to solve multiple things if you only use a few digits for each thing you want to save. And you can also encrypt data in the available strings… But yes, you will be restricted. If you freely want to save something to a text document (only offline), you could google that just as I would do because I have never done that either ;)
RevoltecX7 RevoltecX7

2018/8/12

#
What is this UserInfo class? Can I use in it array with numbers to save my data? I want make just data-store, what will hold for some time. And then load it. (Like after restart pc, etc)
Super_Hippo Super_Hippo

2018/8/13

#
This is the API With that class, you can save (and load) up to 11 ints and 5 strings (max length 50) into a CSV file.
RevoltecX7 RevoltecX7

2018/8/13

#
Oh, this is good one. This will help me a little :) But thanks! I will use this for now.
You need to login to post a reply.