is it the private or public things?
private BossHealth bossHealth;
public void act()
{
if (getWorld() != null)
{
bossHealth.setLocation(getX(), getY());
}
}bossHealth.setLocation(getX(), getY());
if (main != null)