From 05b35fc1eb94aca31f90c65c0a6457bc0f2b6dd6 Mon Sep 17 00:00:00 2001 From: cakipaul Date: Wed, 6 Aug 2025 20:53:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=B4=E7=97=9B=E5=8A=A8=E4=BD=9C=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/animation/entity_sprite_frames.tres | 30 +++++++++++++++------- scene/character/main_player.gd | 2 +- 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/config/animation/entity_sprite_frames.tres b/config/animation/entity_sprite_frames.tres index c043c51e..d5601bb0 100644 --- a/config/animation/entity_sprite_frames.tres +++ b/config/animation/entity_sprite_frames.tres @@ -2764,16 +2764,22 @@ animations = [{ "duration": 1.0, "texture": ExtResource("542_pf4co") }, { -"duration": 1.0, +"duration": 3.0, "texture": ExtResource("543_axp0t") }, { -"duration": 1.0, +"duration": 3.0, "texture": ExtResource("544_utdtj") }, { -"duration": 1.0, +"duration": 3.0, "texture": ExtResource("545_alesa") }, { -"duration": 1.0, +"duration": 3.0, +"texture": ExtResource("546_6dfax") +}, { +"duration": 3.0, +"texture": ExtResource("545_alesa") +}, { +"duration": 3.0, "texture": ExtResource("546_6dfax") }, { "duration": 1.0, @@ -2835,19 +2841,25 @@ animations = [{ "duration": 1.0, "texture": ExtResource("564_r8eua") }, { -"duration": 1.0, +"duration": 3.0, "texture": ExtResource("565_udp6b") }, { -"duration": 1.0, +"duration": 3.0, "texture": ExtResource("566_4rw06") }, { -"duration": 1.0, +"duration": 3.0, "texture": ExtResource("567_u3obx") }, { -"duration": 1.0, +"duration": 3.0, "texture": ExtResource("568_letpt") }, { -"duration": 1.0, +"duration": 3.0, +"texture": ExtResource("569_m41vc") +}, { +"duration": 3.0, +"texture": ExtResource("568_letpt") +}, { +"duration": 3.0, "texture": ExtResource("569_m41vc") }, { "duration": 1.0, diff --git a/scene/character/main_player.gd b/scene/character/main_player.gd index 43835545..733ffd24 100644 --- a/scene/character/main_player.gd +++ b/scene/character/main_player.gd @@ -45,7 +45,7 @@ signal animation_finished if is_node_ready(): _check_character_runtime_status() if val > 3: - freeze_player(1, val, true) + player_action(val, true) # 使用 new,方便在 editor 中刷新新值 var current_animation_config: Dictionary