public void visible(boolean value){ this.visible = value; if (emitter != null && !visible){ emitter.killAndErase(); emitter = null; } }
public void visible(boolean value){ this.visible = value; if (emitter != null && !visible){ emitter.killAndErase(); emitter = null; } }
@Override public void drop() { scale.set( 1 ); am = 1; if (emitter != null) emitter.killAndErase(); }
@Override public void kill() { super.kill(); if (emitter != null) emitter.killAndErase(); emitter = null; }
@Override public void drop() { scale.set( 1 ); am = 1; if (emitter != null) emitter.killAndErase(); }
@Override public void kill() { super.kill(); if (emitter != null) emitter.killAndErase(); emitter = null; }
public ItemSprite view( int image, Glowing glowing ) { if (this.emitter != null) this.emitter.killAndErase(); emitter = null; frame( image ); glow( glowing ); return this; }
public ItemSprite view( int image, Glowing glowing ) { if (this.emitter != null) this.emitter.killAndErase(); emitter = null; frame( image ); glow( glowing ); return this; }
@Override public void onComplete( Animation anim ) { super.onComplete(anim); if (anim == pumpAttack) { idle(); ch.onAttackComplete(); } else if (anim == die) { spray.killAndErase(); } } }
@Override public void revive() { super.revive(); speed.set( 0 ); acc.set( 0 ); dropInterval = 0; heap = null; if (emitter != null) { emitter.killAndErase(); emitter = null; } }
@Override public void revive() { super.revive(); speed.set( 0 ); acc.set( 0 ); dropInterval = 0; heap = null; if (emitter != null) { emitter.killAndErase(); emitter = null; } }
@Override public void onComplete( Animation anim ) { super.onComplete(anim); if (anim == pumpAttack) { idle(); ch.onAttackComplete(); } else if (anim == die) { spray.killAndErase(); } } }
@Override public void onComplete( Animation anim ) { super.onComplete( anim ); if (anim == zap) { idle(); if (Actor.findChar(zapPos) != null){ parent.add(new Beam.DeathRay(center(), Actor.findChar(zapPos).sprite.center())); } else { parent.add(new Beam.DeathRay(center(), DungeonTilemap.raisedTileCenterToWorld(zapPos))); } ((Eye)ch).deathGaze(); ch.next(); } else if (anim == die){ chargeParticles.killAndErase(); } } }
@Override public void onComplete( Animation anim ) { super.onComplete( anim ); if (anim == zap) { idle(); if (Actor.findChar(zapPos) != null){ parent.add(new Beam.DeathRay(center(), Actor.findChar(zapPos).sprite.center())); } else { parent.add(new Beam.DeathRay(center(), DungeonTilemap.raisedTileCenterToWorld(zapPos))); } ((Eye)ch).deathGaze(); ch.next(); } else if (anim == die){ chargeParticles.killAndErase(); } } }