BlockAnimations.tscn 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. [gd_scene load_steps=5 format=3 uid="uid://cijkvfkthetn5"]
  2. [ext_resource type="Script" uid="uid://bna1qn33m01d5" path="res://Scripts/Parts/BlockAnimations.gd" id="1_j0pkw"]
  3. [sub_resource type="Animation" id="Animation_w2x6g"]
  4. resource_name = "BlockHit"
  5. length = 0.2
  6. step = 0.1
  7. tracks/0/type = "value"
  8. tracks/0/imported = false
  9. tracks/0/enabled = true
  10. tracks/0/path = NodePath("Joint:position")
  11. tracks/0/interp = 2
  12. tracks/0/loop_wrap = true
  13. tracks/0/keys = {
  14. "times": PackedFloat32Array(0, 0.05, 0.15),
  15. "transitions": PackedFloat32Array(1, 1, 1),
  16. "update": 0,
  17. "values": [Vector2(0, 0), Vector2(0, -8), Vector2(0, 0)]
  18. }
  19. tracks/1/type = "value"
  20. tracks/1/imported = false
  21. tracks/1/enabled = true
  22. tracks/1/path = NodePath(".:z_index")
  23. tracks/1/interp = 1
  24. tracks/1/loop_wrap = true
  25. tracks/1/keys = {
  26. "times": PackedFloat32Array(0, 0.15),
  27. "transitions": PackedFloat32Array(1, 1),
  28. "update": 1,
  29. "values": [3, 0]
  30. }
  31. [sub_resource type="Animation" id="Animation_j0pkw"]
  32. length = 0.001
  33. tracks/0/type = "value"
  34. tracks/0/imported = false
  35. tracks/0/enabled = true
  36. tracks/0/path = NodePath("Joint:position")
  37. tracks/0/interp = 1
  38. tracks/0/loop_wrap = true
  39. tracks/0/keys = {
  40. "times": PackedFloat32Array(0),
  41. "transitions": PackedFloat32Array(1),
  42. "update": 0,
  43. "values": [Vector2(0, 0)]
  44. }
  45. tracks/1/type = "value"
  46. tracks/1/imported = false
  47. tracks/1/enabled = true
  48. tracks/1/path = NodePath(".:z_index")
  49. tracks/1/interp = 1
  50. tracks/1/loop_wrap = true
  51. tracks/1/keys = {
  52. "times": PackedFloat32Array(0),
  53. "transitions": PackedFloat32Array(1),
  54. "update": 1,
  55. "values": [0]
  56. }
  57. [sub_resource type="AnimationLibrary" id="AnimationLibrary_tid1o"]
  58. _data = {
  59. &"BlockHit": SubResource("Animation_w2x6g"),
  60. &"RESET": SubResource("Animation_j0pkw")
  61. }
  62. [node name="BlockAnimations" type="Node2D"]
  63. script = ExtResource("1_j0pkw")
  64. [node name="Animations" type="AnimationPlayer" parent="."]
  65. libraries = {
  66. &"": SubResource("AnimationLibrary_tid1o")
  67. }
  68. [node name="Joint" type="RemoteTransform2D" parent="."]
  69. update_rotation = false
  70. update_scale = false