So my object won't leave the screen after it does its animation. This is just the problem part of the code. Could someone help me?
if (getWorld() !=null)
{
if(isTouching(Mine.class))
{
if(count % 5 == 0)
{
death++;
if (death == 5)
{
death = 1;
getWorld().removeObject(this);
}
}
setImage("Death" + death + ".png");
count++;
}
}

