From 0454616c39e7dba2d834d1b77df32a9137ba3507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=A8=E8=90=BD=E5=9F=BA=E5=9B=B4=E8=99=BE?= <3161880837@qq.com> Date: Sun, 14 Sep 2025 16:50:21 +0800 Subject: [PATCH] =?UTF-8?q?refactor(BossAttack):=20=E7=AE=80=E5=8C=96Forev?= =?UTF-8?q?erRainbow=E5=8A=A8=E7=94=BB=E8=BD=A8=E9=81=93=E5=B9=B6=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E7=A2=B0=E6=92=9E=E5=BD=A2=E7=8A=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除多余的scale动画轨道,仅保留modulate:a轨道 调整CapsuleShape2D的高度为224.0 --- .../BossAttack/Bear/ForeverRainbow.tscn | 58 ++----------------- 1 file changed, 6 insertions(+), 52 deletions(-) diff --git a/components/Bullets/BossAttack/Bear/ForeverRainbow.tscn b/components/Bullets/BossAttack/Bear/ForeverRainbow.tscn index b6d6a8b..9eebac5 100644 --- a/components/Bullets/BossAttack/Bear/ForeverRainbow.tscn +++ b/components/Bullets/BossAttack/Bear/ForeverRainbow.tscn @@ -27,33 +27,11 @@ length = 0.001 tracks/0/type = "bezier" tracks/0/imported = false tracks/0/enabled = true -tracks/0/path = NodePath(".:scale:x") +tracks/0/path = NodePath(".:modulate:a") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "handle_modes": PackedInt32Array(0), -"points": PackedFloat32Array(2, -0.25, 0, 0.25, 0), -"times": PackedFloat32Array(0) -} -tracks/1/type = "bezier" -tracks/1/imported = false -tracks/1/enabled = true -tracks/1/path = NodePath(".:scale:y") -tracks/1/interp = 1 -tracks/1/loop_wrap = true -tracks/1/keys = { -"handle_modes": PackedInt32Array(0), -"points": PackedFloat32Array(2, -0.25, 0, 0.25, 0), -"times": PackedFloat32Array(0) -} -tracks/2/type = "bezier" -tracks/2/imported = false -tracks/2/enabled = true -tracks/2/path = NodePath(".:modulate:a") -tracks/2/interp = 1 -tracks/2/loop_wrap = true -tracks/2/keys = { -"handle_modes": PackedInt32Array(0), "points": PackedFloat32Array(1, -0.25, 0, 0.25, 0), "times": PackedFloat32Array(0) } @@ -87,35 +65,13 @@ step = 0.5 tracks/0/type = "bezier" tracks/0/imported = false tracks/0/enabled = true -tracks/0/path = NodePath(".:scale:x") +tracks/0/path = NodePath(".:modulate:a") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { -"handle_modes": PackedInt32Array(0, 0, 0), -"points": PackedFloat32Array(1, -0.25, 0, 0.25, 0, 2, -0.25, 0, 0.25, 0, 1, -0.25, 0, 0.25, 0), -"times": PackedFloat32Array(0, 3, 11) -} -tracks/1/type = "bezier" -tracks/1/imported = false -tracks/1/enabled = true -tracks/1/path = NodePath(".:scale:y") -tracks/1/interp = 1 -tracks/1/loop_wrap = true -tracks/1/keys = { -"handle_modes": PackedInt32Array(0, 0, 0), -"points": PackedFloat32Array(1, -0.25, 0, 0.25, 0, 2, -0.25, 0, 0.25, 0, 1, -0.25, 0, 0.25, 0), -"times": PackedFloat32Array(0, 3, 11) -} -tracks/2/type = "bezier" -tracks/2/imported = false -tracks/2/enabled = true -tracks/2/path = NodePath(".:modulate:a") -tracks/2/interp = 1 -tracks/2/loop_wrap = true -tracks/2/keys = { -"handle_modes": PackedInt32Array(0, 0, 0), -"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0, 1, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0), -"times": PackedFloat32Array(0, 1, 11) +"handle_modes": PackedInt32Array(0, 0, 0, 0), +"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0, 1, -0.25, 0, 0.25, 0, 1, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0), +"times": PackedFloat32Array(0, 1, 6, 11) } [sub_resource type="AnimationLibrary" id="AnimationLibrary_edsep"] @@ -128,7 +84,7 @@ _data = { [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_4fgwj"] radius = 15.0 -height = 86.0 +height = 224.0 [node name="ForeverRainbow" instance=ExtResource("1_sltl7")] script = ExtResource("2_wwmq8") @@ -141,8 +97,6 @@ autoDestroyOnHitMap = false freeAfterSpawn = true [node name="texture" parent="." index="0"] -position = Vector2(-67, 0) -scale = Vector2(2, 2) sprite_frames = SubResource("SpriteFrames_vtg2m") [node name="animator" parent="texture" index="0"]