SmokeParticle.tscn 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. [gd_scene load_steps=8 format=3 uid="uid://d08nv4qtfouv1"]
  2. [ext_resource type="Texture2D" uid="uid://byy3k1pdrp77" path="res://Assets/Sprites/Particles/Smoke.png" id="1_tpri6"]
  3. [sub_resource type="AtlasTexture" id="AtlasTexture_x2ehg"]
  4. atlas = ExtResource("1_tpri6")
  5. region = Rect2(0, 0, 16, 16)
  6. [sub_resource type="AtlasTexture" id="AtlasTexture_g3yun"]
  7. atlas = ExtResource("1_tpri6")
  8. region = Rect2(16, 0, 16, 16)
  9. [sub_resource type="AtlasTexture" id="AtlasTexture_ig72b"]
  10. atlas = ExtResource("1_tpri6")
  11. region = Rect2(32, 0, 16, 16)
  12. [sub_resource type="AtlasTexture" id="AtlasTexture_tvxpm"]
  13. atlas = ExtResource("1_tpri6")
  14. region = Rect2(48, 0, 16, 16)
  15. [sub_resource type="AtlasTexture" id="AtlasTexture_xke1f"]
  16. atlas = ExtResource("1_tpri6")
  17. region = Rect2(64, 0, 16, 16)
  18. [sub_resource type="SpriteFrames" id="SpriteFrames_6nxch"]
  19. animations = [{
  20. "frames": [{
  21. "duration": 1.0,
  22. "texture": SubResource("AtlasTexture_x2ehg")
  23. }, {
  24. "duration": 1.0,
  25. "texture": SubResource("AtlasTexture_g3yun")
  26. }, {
  27. "duration": 1.0,
  28. "texture": SubResource("AtlasTexture_ig72b")
  29. }, {
  30. "duration": 1.0,
  31. "texture": SubResource("AtlasTexture_tvxpm")
  32. }, {
  33. "duration": 1.0,
  34. "texture": SubResource("AtlasTexture_xke1f")
  35. }],
  36. "loop": false,
  37. "name": &"default",
  38. "speed": 15.0
  39. }]
  40. [node name="SmokeParticle" type="AnimatedSprite2D"]
  41. sprite_frames = SubResource("SpriteFrames_6nxch")
  42. autoplay = "default"
  43. frame = 4
  44. frame_progress = 1.0
  45. offset = Vector2(0, -8)
  46. [node name="Timer" type="Timer" parent="."]
  47. one_shot = true
  48. autostart = true
  49. [connection signal="timeout" from="Timer" to="." method="queue_free"]