From c5c86582a92855c9d311e2c4f76780f494bbea19 Mon Sep 17 00:00:00 2001 From: cakipaul Date: Sun, 13 Jul 2025 17:06:08 +0800 Subject: [PATCH] =?UTF-8?q?walk=5Fto=20=E4=B8=8D=E5=8F=AF=20running?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scene/character/main_player.gd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scene/character/main_player.gd b/scene/character/main_player.gd index 962136bc..a3d9bad4 100644 --- a/scene/character/main_player.gd +++ b/scene/character/main_player.gd @@ -385,6 +385,9 @@ func walk_to(global_pos: Vector2) -> Tween: elif global_pos.x > global_position.x: direction.x = 1.0 _check_status(direction) + # 禁用 RUNNING + if current_status == PlayerAnimationConfig.MOVEMENT_RUNNING: + current_status = PlayerAnimationConfig.MOVEMENT_WALKING _play_animation() tween.tween_property(self, "global_position", global_pos, time_cost) tween.tween_callback(_after_walk_to)