Hey,
I have a question. I want to Change the world, that when it is changing back to the first world, the first World dont loses the actual Game stats. The first World should not create the map new, it should take the actually created map. In my example I have the main World "Map" and another World called "MarioWorld".
I changed the World first like this:
(It is in the Shooting class of the Player)
and then the code back from the MarioWorld to the Map:
I think the Problem is with the "new Map/MarioWorld" in the code but i dont know what to write therefore.
Thanks
PS: Sry for my miserable English :P I hope you can understand me...
Greenfoot.setWorld(new MarioWorld());
Greenfoot.setWorld(new Map());