ace, vonmeth your a star :)
public void checkHeroCollision(){
Actor collided = getOneIntersectingObject(Hero.class);
if (collided != null){
City cityWorld = (City) getWorld(); // get a reference to the world
if(!Hero.shieldActive){ // is your hero shield not active? Then take damage
Bar bar = cityWorld.getBar(); // get a reference to the counter
bar.subtract(10);
}
getWorld().addObject(new explosionSmall(), getX(), getY());
getWorld().removeObject(this);
return;
} else {
if (getX() <= - outOfBoundary) {
getWorld().removeObject(this);
}
}
}