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

2019/4/9

Save the World

gdouglas gdouglas

2019/4/9

#
I'm new to Greenfoot, I teach a basic programming class in high school, so hopefully this is an easy solution. When I go to Controls, "Save the World" option isn't even listed. All that is listed is: Act, Run, Pause - which is grayed out, and Reset. How do I do "save the world" if the option isn't available? Thank You
danpost danpost

2019/4/9

#
Maybe you overlooked it. You should find it as the last (bottom-most) item on the drop-down menu.
ErasedBlade ErasedBlade

2019/4/9

#
A way to do it without that option appearing would be to do it all through the code Put it all in the worlds prepare method or in the world constructor
addObject(new Object() ,x,y);
The save the world option essentially does this. The code that the save the world option adds is
Object object = new Object();
addObject(object,x,y);
Into the prepare method of the world
Super_Hippo Super_Hippo

2019/4/9

#
You need to right-click on the background of the world while the scenario is not running.
You need to login to post a reply.