v0.7.4: fixed boomerang return vfx not pausing actor movement

This commit is contained in:
Evan Debenham 2019-06-24 22:47:33 -04:00
parent 990599d2ad
commit 666ef81363

View File

@ -115,12 +115,14 @@ public class HeavyBoomerang extends MissileWeapon {
} else {
Dungeon.level.drop(boomerang, returnPos).sprite.drop();
}
CircleBack.this.next();
}
});
visual.alpha(0f);
float duration = Dungeon.level.trueDistance(thrownPos, returnPos) / 20f;
Dungeon.hero.sprite.parent.add(new AlphaTweener(visual, 1f, duration));
detach();
return false;
}
}
spend( TICK );