Currently I am using this simple code:
Obviously when this Actor (TheBoss1) touches the Bullet, it removes itself. I want to be able to define a number of Bullets that it gets hit by and THEN removes itself. Could anyone please be so kind as to helping me? Thank you!!!
public void Shot() { Actor TheBoss1; TheBoss1 = getOneObjectAtOffset(0, 0, Bullet.class); if (TheBoss1 != null) { World world; world = getWorld(); world.removeObject(this); } }