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

2015/2/26

How Do You Restart A Level When You Die

BashBashAttack BashBashAttack

2015/2/26

#
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.
danpost danpost

2015/2/26

#
Post the code of the World subclass you want to reset.
BashBashAttack BashBashAttack

2015/3/4

#
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() { } }
danpost danpost

2015/3/5

#
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.
You need to login to post a reply.