We are having a problem. We are trying to figure how you are able to restart a level when you die in the game If you can help that would amazing. Thank you.
import greenfoot.*;
/**
* Write a description of class FunkySpace here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class FunkySpace extends World
{
/**
* Constructor for objects of class FunkySpace.
*
*/
public FunkySpace()
{
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
super(1400, 800, 1);
prepare();
}
/**
* Prepare the world for the start of the program. That is: create the initial
* objects and add them to the world.
*/
private void prepare()
{
}
}
You must be adding your actors into the world manually. They will not reappear when you reset unless you 'Save the World' after adding them. You cannot 'Save the World' once any act cycles have been executed; so, do this immediately after you have placed all your actors where you want them.