From 88eed6925d60cc7eb7e1a85939be2632078882de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= Date: Tue, 23 Dec 2025 11:27:36 -0300 Subject: [PATCH] Shine particles: Improve Apply my suggestions to the learner: Change the asset to have a single spark, and actually use the particle system to emit multiple sparks. This adds more variety to the effect. Also add some explosiveness. --- .../fx/shine_particles/components/sparks.png | 4 ++-- .../fx/shine_particles/shine_particles.tscn | 15 +++++++++------ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/scenes/game_elements/fx/shine_particles/components/sparks.png b/scenes/game_elements/fx/shine_particles/components/sparks.png index 3d274cccec..612338a4a2 100644 --- a/scenes/game_elements/fx/shine_particles/components/sparks.png +++ b/scenes/game_elements/fx/shine_particles/components/sparks.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ee77a09e3a80178b49f9485c35cb380a83008f927822cea592b7e190dc765c87 -size 1538 +oid sha256:986114c4714cd73dccb2b6cd22d500701e3aa5d7992a575a3c6dea252281ce64 +size 174 diff --git a/scenes/game_elements/fx/shine_particles/shine_particles.tscn b/scenes/game_elements/fx/shine_particles/shine_particles.tscn index 17b457f5a7..444534dd0c 100644 --- a/scenes/game_elements/fx/shine_particles/shine_particles.tscn +++ b/scenes/game_elements/fx/shine_particles/shine_particles.tscn @@ -5,8 +5,8 @@ [sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_tnibl"] blend_mode = 1 particles_animation = true -particles_anim_h_frames = 4 -particles_anim_v_frames = 4 +particles_anim_h_frames = 1 +particles_anim_v_frames = 11 particles_anim_loop = false [sub_resource type="Curve" id="Curve_8jhju"] @@ -22,8 +22,11 @@ curve = SubResource("Curve_8jhju") particle_flag_disable_z = true emission_shape_scale = Vector3(0, 0, 0) emission_shape = 1 -emission_sphere_radius = 0.01 -spread = 0.0 +emission_sphere_radius = 64.0 +direction = Vector3(0, -1, 0) +spread = 160.0 +initial_velocity_min = 10.0 +initial_velocity_max = 30.0 directional_velocity_min = 1.0 directional_velocity_max = 1.0 directional_velocity_curve = SubResource("CurveXYZTexture_8jhju") @@ -37,10 +40,10 @@ anim_speed_max = 1.0 modulate = Color(1, 1, 0, 1) material = SubResource("CanvasItemMaterial_tnibl") emitting = false -amount = 1 +amount = 20 texture = ExtResource("1_ver2c") -lifetime = 0.5 one_shot = true +explosiveness = 0.7 randomness = 0.38 fixed_fps = 10 process_material = SubResource("ParticleProcessMaterial_5lbww")