From 69c55400ba6b229cf104601e6e5b5e79ece6f97a Mon Sep 17 00:00:00 2001 From: walkpan Date: Sun, 15 Mar 2026 12:07:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=8A=A8=E7=94=BB):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E6=94=BB=E5=87=BB=E5=8A=A8=E7=94=BB=E7=9A=84=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E8=A7=A6=E5=8F=91=E6=97=B6=E6=9C=BA=E4=B8=8E=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 atk01.anim 的攻击事件从第 0.066 帧移至第 0 帧,确保攻击判定与动画起始同步 - 修正 hk1/atk0.anim 的动画名称并添加 onAtkEvent 触发事件 - 调整 atk04.anim 的帧率、时长与关键帧,使动画播放更流畅准确 --- .../resources/game/heros/hero/hk1/atk0.anim | 15 ++++- .../resources/game/skill/anm/atk/atk01.anim | 4 +- .../resources/game/skill/anm/atk/atk04.anim | 55 ++++--------------- 3 files changed, 26 insertions(+), 48 deletions(-) diff --git a/assets/resources/game/heros/hero/hk1/atk0.anim b/assets/resources/game/heros/hero/hk1/atk0.anim index 73c0cf7c..5b93be47 100644 --- a/assets/resources/game/heros/hero/hk1/atk0.anim +++ b/assets/resources/game/heros/hero/hk1/atk0.anim @@ -1,7 +1,7 @@ [ { "__type__": "cc.AnimationClip", - "_name": "atk", + "_name": "atk0", "_objFlags": 0, "__editorExtras__": { "embeddedPlayerGroups": [] @@ -19,7 +19,18 @@ } ], "_exoticAnimation": null, - "_events": [], + "_events": [ + { + "frame": 0.4, + "func": "", + "params": [] + }, + { + "frame": 0.4, + "func": "onAtkEvent", + "params": [] + } + ], "_embeddedPlayers": [], "_additiveSettings": { "__id__": 6 diff --git a/assets/resources/game/skill/anm/atk/atk01.anim b/assets/resources/game/skill/anm/atk/atk01.anim index 26d1883c..1b7d6190 100644 --- a/assets/resources/game/skill/anm/atk/atk01.anim +++ b/assets/resources/game/skill/anm/atk/atk01.anim @@ -24,12 +24,12 @@ "_exoticAnimation": null, "_events": [ { - "frame": 0.06666666666666667, + "frame": 0, "func": "", "params": [] }, { - "frame": 0.06666666666666667, + "frame": 0, "func": "atk", "params": [] } diff --git a/assets/resources/game/skill/anm/atk/atk04.anim b/assets/resources/game/skill/anm/atk/atk04.anim index f929f66d..0eed4bb9 100644 --- a/assets/resources/game/skill/anm/atk/atk04.anim +++ b/assets/resources/game/skill/anm/atk/atk04.anim @@ -7,11 +7,11 @@ "embeddedPlayerGroups": [] }, "_native": "", - "sample": 24, + "sample": 27, "speed": 1, - "wrapMode": 1, + "wrapMode": 2, "enableTrsBlending": false, - "_duration": 0.5, + "_duration": 0.2222222222222222, "_hash": 500763545, "_tracks": [ { @@ -21,12 +21,12 @@ "_exoticAnimation": null, "_events": [ { - "frame": 0.20833333333333334, + "frame": 0.14814814814814814, "func": "", "params": [] }, { - "frame": 0.20833333333333334, + "frame": 0.14814814814814814, "func": "atk", "params": [] } @@ -80,27 +80,13 @@ "__type__": "cc.ObjectCurve", "_times": [ 0, - 0.041666666666666664, - 0.08333333333333333, - 0.125, - 0.16666666666666666, - 0.20833333333333334, - 0.25, - 0.2916666666666667, - 0.3333333333333333, - 0.375, - 0.4166666666666667, - 0.4583333333333333 + 0.037037037037037035, + 0.07407407407407407, + 0.1111111111111111, + 0.14814814814814814, + 0.18518518518518517 ], "_values": [ - { - "__uuid__": "2423272e-e63b-4736-b15b-30b40cf98a23@c1e30", - "__expectedType__": "cc.SpriteFrame" - }, - { - "__uuid__": "2423272e-e63b-4736-b15b-30b40cf98a23@f62e8", - "__expectedType__": "cc.SpriteFrame" - }, { "__uuid__": "2423272e-e63b-4736-b15b-30b40cf98a23@ac137", "__expectedType__": "cc.SpriteFrame" @@ -121,26 +107,7 @@ "__uuid__": "2423272e-e63b-4736-b15b-30b40cf98a23@77aba", "__expectedType__": "cc.SpriteFrame" }, - { - "__uuid__": "2423272e-e63b-4736-b15b-30b40cf98a23@82d97", - "__expectedType__": "cc.SpriteFrame" - }, - { - "__uuid__": "2423272e-e63b-4736-b15b-30b40cf98a23@57229", - "__expectedType__": "cc.SpriteFrame" - }, - { - "__uuid__": "2423272e-e63b-4736-b15b-30b40cf98a23@831ec", - "__expectedType__": "cc.SpriteFrame" - }, - { - "__uuid__": "2423272e-e63b-4736-b15b-30b40cf98a23@ce25f", - "__expectedType__": "cc.SpriteFrame" - }, - { - "__uuid__": "2423272e-e63b-4736-b15b-30b40cf98a23@e151b", - "__expectedType__": "cc.SpriteFrame" - } + null ] }, {