Sprite.tscn 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. [gd_scene load_steps=4 format=2]
  2. [ext_resource path="res://turn_combat/combatants/sprites/shadow.png" type="Texture" id=1]
  3. [ext_resource path="res://turn_combat/combatants/sprites/blue.png" type="Texture" id=2]
  4. [sub_resource type="Animation" id=1]
  5. resource_name = "take_damage"
  6. length = 0.2
  7. loop = false
  8. step = 0.05
  9. tracks/0/type = "value"
  10. tracks/0/path = NodePath("Pivot/Body:modulate")
  11. tracks/0/interp = 1
  12. tracks/0/loop_wrap = true
  13. tracks/0/imported = false
  14. tracks/0/enabled = true
  15. tracks/0/keys = {
  16. "times": PoolRealArray( 0, 0.05, 0.1, 0.15, 0.2 ),
  17. "transitions": PoolRealArray( 1, 1, 1, 1, 1 ),
  18. "update": 0,
  19. "values": [ Color( 1, 1, 1, 1 ), Color( 3, 0.253906, 0.253906, 1 ), Color( 1, 1, 1, 1 ), Color( 3, 0.253906, 0.253906, 1 ), Color( 1, 1, 1, 1 ) ]
  20. }
  21. [node name="Sprite" type="Node2D"]
  22. [node name="AnimationPlayer" type="AnimationPlayer" parent="." index="0"]
  23. root_node = NodePath("..")
  24. autoplay = ""
  25. playback_process_mode = 1
  26. playback_default_blend_time = 0.0
  27. playback_speed = 1.0
  28. anims/take_damage = SubResource( 1 )
  29. blend_times = [ ]
  30. [node name="Tween" type="Tween" parent="." index="1"]
  31. repeat = false
  32. playback_process_mode = 1
  33. playback_speed = 1.0
  34. playback/active = false
  35. playback/repeat = false
  36. playback/speed = 1.0
  37. [node name="Pivot" type="Position2D" parent="." index="2"]
  38. [node name="Shadow" type="Sprite" parent="Pivot" index="0"]
  39. position = Vector2( 0, -15 )
  40. texture = ExtResource( 1 )
  41. _sections_unfolded = [ "Transform" ]
  42. [node name="Body" type="Sprite" parent="Pivot" index="1"]
  43. position = Vector2( 0, -76 )
  44. texture = ExtResource( 2 )
  45. _sections_unfolded = [ "Visibility" ]