skid particles + extra particles setting

This commit is contained in:
JHDev2006
2025-10-01 12:33:34 +01:00
parent d0d04c64c7
commit 9e5d7bd8e6
23 changed files with 120 additions and 30 deletions

View File

@@ -1,6 +1,6 @@
[gd_scene load_steps=5 format=3 uid="uid://ciif5kygsk0fu"]
[ext_resource type="Texture2D" uid="uid://dkebo0uw0dkkw" path="res://Assets/Sprites/Particles/CoinSparkle.png" id="1_1cy2p"]
[ext_resource type="Texture2D" uid="uid://c4ugewy0lof7v" path="res://Assets/Sprites/Particles/RedCoinSparkle.png" id="1_1cy2p"]
[ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="2_4yggt"]
[ext_resource type="JSON" path="res://Assets/Sprites/Particles/RedCoinSparkle.json" id="3_1cy2p"]
@@ -11,6 +11,7 @@ particles_anim_v_frames = 1
particles_anim_loop = false
[node name="CoinSparkle" type="CPUParticles2D"]
z_as_relative = false
material = SubResource("CanvasItemMaterial_0guw6")
emitting = false
amount = 3
@@ -29,11 +30,11 @@ anim_speed_max = 2.0
[node name="ResourceSetterNew" type="Node" parent="." node_paths=PackedStringArray("node_to_affect", "property_node")]
script = ExtResource("2_4yggt")
node_to_affect = NodePath("")
property_node = NodePath("")
node_to_affect = NodePath("..")
property_node = NodePath("..")
property_name = "texture"
mode = 1
resource_json = ExtResource("3_1cy2p")
metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
[connection signal="ready" from="." to="." method="set_emitting"]
[connection signal="ready" from="." to="." method="set_emitting" binds= [true]]