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

2015/8/12

Staying Still

Camyh15 Camyh15

2015/8/12

#
How do you get everything to stay still when you press run? (I mean that I have a start screen, so when I click on the start screen it makes the whole thing run. The thing is, is that when I type the code Greenfoot.stop(); it stops it (I do have the code, Greenfoot.start();), so when I click the start screen which has the code Greenfoot.start(); nothing happens!)
danpost danpost

2015/8/12

#
The only place you can use 'Greenfoot.start();' with any effectiveness is in code that executes during the resetting of the project (in your initial world constructor or in any code that executes during the running of that constructor. No code outside of that can execute unless the project has been started. You can use the click on the 'Run' button as the signal to proceed to game mode. Make use of the 'started' method for that.
You need to login to post a reply.