eruption.tscn 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. [gd_scene load_steps=6 format=3 uid="uid://ben0ks1co8nid"]
  2. [ext_resource type="Texture2D" uid="uid://cyfwafl34k72b" path="res://effets/eruption/fxFlursh.png" id="1_l04ay"]
  3. [sub_resource type="AtlasTexture" id="AtlasTexture_it1br"]
  4. atlas = ExtResource("1_l04ay")
  5. region = Rect2(0, 68, 101, 68)
  6. [sub_resource type="AtlasTexture" id="AtlasTexture_iw6y5"]
  7. atlas = ExtResource("1_l04ay")
  8. region = Rect2(0, 136, 101, 68)
  9. [sub_resource type="AtlasTexture" id="AtlasTexture_j05ac"]
  10. atlas = ExtResource("1_l04ay")
  11. region = Rect2(0, 0, 101, 68)
  12. [sub_resource type="SpriteFrames" id="SpriteFrames_l8lhy"]
  13. animations = [{
  14. "frames": [{
  15. "duration": 1.0,
  16. "texture": SubResource("AtlasTexture_it1br")
  17. }, {
  18. "duration": 1.0,
  19. "texture": SubResource("AtlasTexture_iw6y5")
  20. }, {
  21. "duration": 2.0,
  22. "texture": SubResource("AtlasTexture_j05ac")
  23. }, {
  24. "duration": 1.0,
  25. "texture": SubResource("AtlasTexture_iw6y5")
  26. }, {
  27. "duration": 1.0,
  28. "texture": SubResource("AtlasTexture_it1br")
  29. }],
  30. "loop": false,
  31. "name": &"default",
  32. "speed": 16.0
  33. }]
  34. [node name="Eruption" type="Node2D"]
  35. [node name="Animation" type="AnimatedSprite2D" parent="."]
  36. position = Vector2(0, -35)
  37. sprite_frames = SubResource("SpriteFrames_l8lhy")
  38. autoplay = "default"
  39. [connection signal="animation_finished" from="Animation" to="." method="queue_free"]