How do you make a saving system that will let you save the location of actors and load them in in the same exact location on the world after you reset the world?
How do you make a saving system that will let you save the location of actors and load them in in the same exact location on the world after you reset the world?
Do you mean after gameplay or after you have manually added actors into the world?
If the want to save the location of Actors you have put into the world go to the "Controls" menu at the top and go down to "Save the World". Whenever you reset the scenario the actors placed will be in the same location as when you saved.
I haven't tried saving a scenario after it is run but maybe this thread would help if that's what you are trying to do.
http://www.greenfoot.org/topics/4316
How do you make a saving system that will let you save the location of actors and load them in in the same exact location on the world after you reset the world?
Do you mean after gameplay or after you have manually added actors into the world?
Currently, due to java security restrictions, writing to a file is only allowed locally. That is, you will not be able to save your game on the site. However, if you are still interested in finding out how to save your game locally, there are several discussions on that as well as a support class or two. You just have to search for them (which could be tedious -- trying to figure out what search words will bring up what you want).