public void speler2Wins()
{
Actor speler1ZietExplosie;
speler1ZietExplosie = getOneObjectAtOffset(getX(), getY(), Explosie.class);
if (speler1ZietExplosie != null)
{
Greenfoot.stop();
}
}this code for my bomberman game needs to make sure that if player1(speler1) is at same x and y as an explosion, the game needs to end. this code is also at my other player(2), there it works fine. but at this player it doesn't. someone?
