LakituCloudBurst.tscn 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. [gd_scene load_steps=10 format=3 uid="uid://dybfmrawthall"]
  2. [ext_resource type="Texture2D" uid="uid://boongcly3e2cl" path="res://Assets/Sprites/Particles/LakituCloudBurst.png" id="1_3jvpp"]
  3. [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="2_cic8a"]
  4. [ext_resource type="JSON" path="res://Assets/Sprites/Particles/LakituCloudBurst.json" id="3_3da8h"]
  5. [sub_resource type="AtlasTexture" id="AtlasTexture_cic8a"]
  6. atlas = ExtResource("1_3jvpp")
  7. region = Rect2(0, 0, 16, 16)
  8. [sub_resource type="AtlasTexture" id="AtlasTexture_3da8h"]
  9. atlas = ExtResource("1_3jvpp")
  10. region = Rect2(16, 0, 16, 16)
  11. [sub_resource type="AtlasTexture" id="AtlasTexture_i741o"]
  12. atlas = ExtResource("1_3jvpp")
  13. region = Rect2(32, 0, 16, 16)
  14. [sub_resource type="AtlasTexture" id="AtlasTexture_qrd6q"]
  15. atlas = ExtResource("1_3jvpp")
  16. region = Rect2(24, 5, 1, 1)
  17. [sub_resource type="SpriteFrames" id="SpriteFrames_xs1ui"]
  18. animations = [{
  19. "frames": [{
  20. "duration": 1.0,
  21. "texture": SubResource("AtlasTexture_cic8a")
  22. }, {
  23. "duration": 1.0,
  24. "texture": SubResource("AtlasTexture_3da8h")
  25. }, {
  26. "duration": 1.0,
  27. "texture": SubResource("AtlasTexture_i741o")
  28. }, {
  29. "duration": 1.0,
  30. "texture": SubResource("AtlasTexture_qrd6q")
  31. }],
  32. "loop": false,
  33. "name": &"default",
  34. "speed": 10.0
  35. }]
  36. [sub_resource type="GDScript" id="GDScript_3jvpp"]
  37. script/source = "extends AnimatedSprite2D
  38. func _ready() -> void:
  39. pass
  40. "
  41. [node name="LakituCloudBurst" type="AnimatedSprite2D"]
  42. z_index = 5
  43. sprite_frames = SubResource("SpriteFrames_xs1ui")
  44. autoplay = "default"
  45. frame = 3
  46. frame_progress = 1.0
  47. script = SubResource("GDScript_3jvpp")
  48. [node name="Timer" type="Timer" parent="."]
  49. wait_time = 10.0
  50. autostart = true
  51. [node name="ResourceSetterNew" type="Node" parent="." node_paths=PackedStringArray("node_to_affect")]
  52. script = ExtResource("2_cic8a")
  53. node_to_affect = NodePath("..")
  54. property_name = "sprite_frames"
  55. resource_json = ExtResource("3_3da8h")
  56. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  57. [connection signal="timeout" from="Timer" to="." method="queue_free"]