Animating the score display
Scale up the score display when points are awarded.
When points are awarded, scale up the score display. Then scaleTo restores its original size over popDuration seconds. Stop the previous animation before starting another. BlockPuzzleScoreComponent.ts
this.killOwnedTweens();
this.node.setScale(this.baseScale * this.config.popScale);
this.ownTween(
this.node.tweens.scaleTo(this.baseScale, this.config.popDuration, {
ease: 'back.out(2)',
}),
);
Points awardedScale up the score display
scaleToScale down smoothly
baseScaleThe display returns to its original size