Right on the tin. The world is not detecting that there are any Invader actors in the world. This causes Null Pointer Exceptions when trying to do something with those actors, like reducing health, speed, etc.
Getter for Invader:
What I'm trying to do with the Invader:
Getter for the invaders HP:
Is there any way that this can be solved.
private Invader inv;
public Invader getInvaders()
{
return inv;
}int invHP = invWorld.getInvaders().getHP();
if (invHP == 0)
{
invWorld.removeObject(invader);
invWorld.removeObject(this);
}
public int getHP ()
{
return invaderHP;
}
