From a19c868aee4561623bbdb716b1e9c920afc3756d 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: Thu, 18 Sep 2025 22:38:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E5=AD=90=E5=BC=B9?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E5=92=8C=E7=B2=92=E5=AD=90=E6=95=88=E6=9E=9C?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复子弹逻辑中hitbox和track的显示顺序问题,优化LGBTBoom粒子效果参数: - 调整粒子数量从10增加到20 - 修改粒子初始速度和大小曲线 - 更新颜色渐变和透明度曲线 --- components/Effects/LGBTBoom.tscn | 16 ++++++++-------- .../Bullets/BossAttack/KukeMC/HeavyCrystal.gd | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/components/Effects/LGBTBoom.tscn b/components/Effects/LGBTBoom.tscn index b23fae4..680b842 100644 --- a/components/Effects/LGBTBoom.tscn +++ b/components/Effects/LGBTBoom.tscn @@ -24,12 +24,12 @@ colors = PackedColorArray(1, 0, 0, 1, 1, 0.447059, 0, 1, 1, 0.890625, 0, 1, 0, 0 [sub_resource type="GradientTexture1D" id="GradientTexture1D_lbwsr"] gradient = SubResource("Gradient_sfjew") -[sub_resource type="Curve" id="Curve_g4ke1"] -_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0] +[sub_resource type="Curve" id="Curve_jkxju"] +_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0.5), 0.0, 0.0, 0, 0] point_count = 2 -[sub_resource type="CurveTexture" id="CurveTexture_cgdl1"] -curve = SubResource("Curve_g4ke1") +[sub_resource type="CurveTexture" id="CurveTexture_wupro"] +curve = SubResource("Curve_jkxju") [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_ynlvg"] particle_flag_disable_z = true @@ -38,17 +38,17 @@ angle_max = 360.0 angle_curve = SubResource("CurveTexture_i60ri") direction = Vector3(-1, 0, 0) spread = 180.0 -initial_velocity_min = 25.0 initial_velocity_max = 50.0 gravity = Vector3(0, 0, 0) scale_min = 0.5 -scale_curve = SubResource("CurveTexture_cgdl1") -color_ramp = SubResource("GradientTexture1D_lbwsr") +scale_max = 0.75 +scale_curve = SubResource("CurveTexture_wupro") +color_initial_ramp = SubResource("GradientTexture1D_lbwsr") alpha_curve = SubResource("CurveTexture_va8eb") [node name="LGBTBoom" instance=ExtResource("1_qfayo")] [node name="particles" parent="." index="1"] -amount = 10 +amount = 20 process_material = SubResource("ParticleProcessMaterial_ynlvg") texture = ExtResource("2_g6mna") diff --git a/scripts/Contents/Bullets/BossAttack/KukeMC/HeavyCrystal.gd b/scripts/Contents/Bullets/BossAttack/KukeMC/HeavyCrystal.gd index 03ff863..40d6acf 100644 --- a/scripts/Contents/Bullets/BossAttack/KukeMC/HeavyCrystal.gd +++ b/scripts/Contents/Bullets/BossAttack/KukeMC/HeavyCrystal.gd @@ -12,8 +12,8 @@ func ai(): rotation = launcher.position.angle_to_point(launcher.currentFocusedBoss.getTrackingAnchor()) hitbox.disabled = true else: + track.visible = false + hitbox.disabled = false damage = speed / 5 PresetBulletAI.forward(self, rotation) speed *= 1.2 - track.visible = false - hitbox.disabled = false