I don't want to have to remove the character from the world because it causes an issue with the lives and the points. Any suggestions would be appreciated :)
The lose life module also has nothing to do with the players position it just removes one life from them.
/**
* This causes the mobs to kill the player upon collision and forces the player to lose a life
*/
public void killed()
{
Player player = new Player();
World world = getWorld();
if(detect(Mob.class))
{
loseLife();
player.setLocation(30, 335);
}
}
