Wing.tscn 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. [gd_scene load_steps=8 format=3 uid="uid://bupy7th8ln45c"]
  2. [ext_resource type="Texture2D" uid="uid://tidb7wgqraj2" path="res://Assets/Sprites/Items/Wings.png" id="1_r7kgt"]
  3. [ext_resource type="Script" uid="uid://caq1qiwmy0mox" path="res://Scripts/Parts/BetterAnimatedSprite.gd" id="2_io3xw"]
  4. [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_r7kgt"]
  5. [ext_resource type="JSON" path="res://Assets/Sprites/Items/Wings.json" id="4_r7kgt"]
  6. [sub_resource type="AtlasTexture" id="AtlasTexture_vpjxo"]
  7. atlas = ExtResource("1_r7kgt")
  8. region = Rect2(0, 0, 16, 16)
  9. [sub_resource type="AtlasTexture" id="AtlasTexture_f1h07"]
  10. atlas = ExtResource("1_r7kgt")
  11. region = Rect2(16, 0, 16, 16)
  12. [sub_resource type="SpriteFrames" id="SpriteFrames_hpedc"]
  13. animations = [{
  14. "frames": [{
  15. "duration": 1.0,
  16. "texture": SubResource("AtlasTexture_vpjxo")
  17. }, {
  18. "duration": 1.0,
  19. "texture": SubResource("AtlasTexture_f1h07")
  20. }],
  21. "loop": true,
  22. "name": &"Flap",
  23. "speed": 5.0
  24. }]
  25. [node name="Wing" type="AnimatedSprite2D"]
  26. sprite_frames = SubResource("SpriteFrames_hpedc")
  27. animation = &"Flap"
  28. autoplay = "default"
  29. frame_progress = 0.594451
  30. script = ExtResource("2_io3xw")
  31. do_offset = false
  32. metadata/_custom_type_script = "uid://caq1qiwmy0mox"
  33. [node name="ResourceSetterNew" type="Node" parent="." node_paths=PackedStringArray("node_to_affect")]
  34. script = ExtResource("3_r7kgt")
  35. node_to_affect = NodePath("..")
  36. property_name = "sprite_frames"
  37. resource_json = ExtResource("4_r7kgt")
  38. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"