whenever i fire my bullet the bullettimer goes to ten (as planned) but then goes to 9 and just stops. Any ideas about what is wrong and where could i fix it?
public void fire() { getWorld().addObject( new bullet(), getX(), getY()); bullettimer = bullettimer + 10; if (bullettimer > 0) { bullettimer = bullettimer - 1; } getWorld().showText(Integer.toString(bullettimer), 10, 10); }