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

2014/4/23

Saving progress

Jonche Jonche

2014/4/23

#
Is it actually possible to save one's progress? I am still on my RPG game and I was wondering if I could export a file on which it would be written the position, stats and healthpoints of my character in the game. I thought it would be awesome if it would be possible. Thanks in advance
lordhershey lordhershey

2014/4/23

#
Yes. Is this something you wrote? You will have to make support for this feature, just come up routine to read and write object states to a file. There may exist several packages like Hibernate out there that could help, or do a search JPA, or start here http://en.wikipedia.org/wiki/Java_Persistence_API
danpost danpost

2014/4/23

#
Keep in mind, however, that you will not be able to have users on the greenfoot site save their progress unless you are able to save the data in the UserInfo storage available. In other words (unless using UserInfo storage), you can only save progress in the greenfoot app or from a stand-alone (not on the site).
lordhershey lordhershey

2014/4/23

#
Doing an RPG with lots of items can be very tricky, unless you limit the amount they can carry, like in Diablo 2. Now I want to make an RPG.
You need to login to post a reply.