Hey, I'm doing a school work and I programmed Bomberman so far.
I've got a problem, how the players get killed by the fire.
My code so far is:
public void life(){
if(getOneIntersectingObject(fire.class)!=null){
(getWorld()).removeObject(this);
Greenfoot.setWorld(new GameOverP2());
}
}
if anybody knows how to fix this prob or has another idea, I would be thankful for any help.
