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

2013/5/26

Reset

Jin-Ho Jin-Ho

2013/5/26

#
I want to make a restart button, which moves all the objects move back to their original places How do I set multiple different objects back to their original places at the same time?
Neon147 Neon147

2013/5/26

#
Have an object in your world by adding it, and that has method inside of that object that has something like this, public reset() { reset(); } public void reset() { if(Greenfoot.mouseClicked(this)) { Greenfoot.setWorld(new GameStart); //starts a new world } }
Jin-Ho Jin-Ho

2013/5/26

#
Thank you so much!
Neon147 wrote...
Have an object in your world by adding it, and that has method inside of that object that has something like this, public reset() { reset(); } public void reset() { if(Greenfoot.mouseClicked(this)) { Greenfoot.setWorld(new GameStart); //starts a new world } }
You need to login to post a reply.