public void setLife(float time) { life = new MyTimer(time) { @Override protected void perform() { alive = false; } }; life.reset(); life.start(); }
@Override public void reset() { alive = false; setX(0); setY(0); setWidth(0); setHeight(0); wrapWidth = 0; text = ""; life.reset(); life.pause(); follow = false; followed = null; }