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

2012/2/12

Restart?

1
2
programmer22 programmer22

2012/2/12

#
ok just trying to stay up with what were talking about but i put all this in the public void act() of my button class and i would make it spawn where the try again part is on the board correct?
danpost danpost

2012/2/12

#
Gotta go now, be back later this evening. How you are on your way (with your scenario). God bless.
danpost danpost

2012/2/12

#
I caught your last, give me one sec.\
danpost danpost

2012/2/12

#
Spawn it to the same location it was placed at the beginning of the game.
programmer22 programmer22

2012/2/12

#
ok ill look for other help and if i get it b4 u get back ill let u know
danpost danpost

2012/2/12

#
BTW, if your Crab is added to the world in the prepare method, you might want to make that code
if (getObjects(Crab.class)) == null) addObject(new Crab(), [xLocation], [yLocation]);
again replacing and with the coordinates to place the crab into the world at. Gotta go.
davmac davmac

2012/2/13

#
For resetting everything, it's usually easier just to create a new world, eg: Greenfoot.setWorld(new CrabWorld());
danpost danpost

2012/2/13

#
@davmac, Bravo! Guess I am still not used to be able to 'setWorld's.
You need to login to post a reply.
1
2