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

2016/4/18

Game wont end when counter hits 0.

Bluedino_ Bluedino_

2016/4/18

#
public void StartMenu() //when you kill enough enemy's { if (theCounter.getCount() == 250) { Greenfoot.setWorld(new StartMenu()); Greenfoot.stop(); } } public void Level1() //when time runs out { if (timerCounter.getCount() == 0) { timerCounter.bumpCount(- 1); Greenfoot.setWorld(new StartMenu()); Greenfoot.stop(); inGame = true; } }
danpost danpost

2016/4/18

#
Need more information/code. What is the code around which these methods are called from?
Bluedino_ Bluedino_

2016/4/19

#
I found the problem, i had it miss spelled hahaha. Thanks anyway!
You need to login to post a reply.