冲突动效放慢一倍

This commit is contained in:
2025-05-29 19:09:49 +08:00
parent 5c66f3b8d2
commit 3ffc4eb337

View File

@@ -66,13 +66,13 @@ export class Block extends Laya.Script {
this.sprite_show.graphics.drawRect(0, 0, blockSize, blockSize, color) this.sprite_show.graphics.drawRect(0, 0, blockSize, blockSize, color)
if (animated) { if (animated) {
this.sprite_show.alpha = 0 this.sprite_show.alpha = 0
Laya.Tween.to(this.sprite_show, { alpha }, 100, Laya.Ease.linearIn) Laya.Tween.to(this.sprite_show, { alpha }, 200, Laya.Ease.linearIn)
Laya.Tween.to(this.sprite_show, { alpha: 0 }, 150, Laya.Ease.linearIn, null, 100) Laya.Tween.to(this.sprite_show, { alpha: 0 }, 300, Laya.Ease.linearIn, null, 200)
Laya.Tween.to(this.sprite_show, { alpha }, 100, Laya.Ease.linearIn, Laya.Handler.create(this, () => { Laya.Tween.to(this.sprite_show, { alpha }, 100, Laya.Ease.linearIn, Laya.Handler.create(this, () => {
this.sprite_show.graphics.clear() this.sprite_show.graphics.clear()
this.sprite_show.graphics.drawRect(0, 0, blockSize, blockSize, completedColor) this.sprite_show.graphics.drawRect(0, 0, blockSize, blockSize, completedColor)
this.sprite_show.alpha = completedAlpha this.sprite_show.alpha = completedAlpha
}), 250) }), 500)
} else { } else {
this.sprite_show.alpha = alpha this.sprite_show.alpha = alpha
} }