hi i’m trying to add damage effect to my spaceship and i want to use addBloom and here is my code
const planetFX = planet.postFX.addBloom(0xffffff, 1, 1, 0, 1.2);
const planetFXTween = this.tweens.add({
targets: planetFX,
blurStrength: 2,
yoyo: true,
duration: 100,
paused: true,
onComplete: () => {
planetFXTween.restart();
planetFXTween.pause();
}
});
planetFXTween.play();
but alpha of the spaceship reduces and it become transparent and it’s not fix using
spaceship.setAlpha(1)
how can i override it?