VerticalPlatform.tscn 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. [gd_scene load_steps=11 format=3 uid="uid://c6x7gv2lqeu1x"]
  2. [ext_resource type="Texture2D" uid="uid://bk0p52ttwojml" path="res://Assets/Sprites/Tilesets/Platform.png" id="1_sh7r3"]
  3. [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="2_sxeqe"]
  4. [ext_resource type="JSON" path="res://Assets/Sprites/Tilesets/Platform.json" id="3_35mwj"]
  5. [ext_resource type="Script" uid="uid://cpwloakvp672a" path="res://Scripts/Parts/EditorVisibleNode.gd" id="4_2ywm4"]
  6. [ext_resource type="Texture2D" uid="uid://dpdrrkqtcedgm" path="res://Assets/Sprites/Tilesets/DottedLine.png" id="5_fity7"]
  7. [ext_resource type="Script" uid="uid://d0mqkvopasu8k" path="res://Scripts/Classes/Components/SecondQuestReplaceComponent.gd" id="6_fity7"]
  8. [sub_resource type="RectangleShape2D" id="RectangleShape2D_mq7me"]
  9. size = Vector2(48, 8)
  10. [sub_resource type="Animation" id="Animation_lvvvw"]
  11. resource_name = "Move"
  12. length = 3.0
  13. loop_mode = 2
  14. tracks/0/type = "value"
  15. tracks/0/imported = false
  16. tracks/0/enabled = true
  17. tracks/0/path = NodePath("AnimatableBody2D:position")
  18. tracks/0/interp = 2
  19. tracks/0/loop_wrap = true
  20. tracks/0/keys = {
  21. "times": PackedFloat32Array(0, 3),
  22. "transitions": PackedFloat32Array(1, 1),
  23. "update": 0,
  24. "values": [Vector2(0, 0), Vector2(0, 128)]
  25. }
  26. [sub_resource type="Animation" id="Animation_7kqku"]
  27. length = 0.001
  28. tracks/0/type = "value"
  29. tracks/0/imported = false
  30. tracks/0/enabled = true
  31. tracks/0/path = NodePath("AnimatableBody2D:position")
  32. tracks/0/interp = 1
  33. tracks/0/loop_wrap = true
  34. tracks/0/keys = {
  35. "times": PackedFloat32Array(0),
  36. "transitions": PackedFloat32Array(1),
  37. "update": 0,
  38. "values": [Vector2(0, 0)]
  39. }
  40. [sub_resource type="AnimationLibrary" id="AnimationLibrary_kqk52"]
  41. _data = {
  42. &"Move": SubResource("Animation_lvvvw"),
  43. &"RESET": SubResource("Animation_7kqku")
  44. }
  45. [node name="SidewaysPlatform" type="Node2D"]
  46. [node name="AnimatableBody2D" type="AnimatableBody2D" parent="."]
  47. [node name="Sprite" type="NinePatchRect" parent="AnimatableBody2D"]
  48. texture_repeat = 2
  49. offset_left = -24.0
  50. offset_right = 24.0
  51. offset_bottom = 8.0
  52. texture = ExtResource("1_sh7r3")
  53. patch_margin_left = 8
  54. patch_margin_right = 8
  55. axis_stretch_horizontal = 1
  56. [node name="ResourceSetter" type="Node" parent="AnimatableBody2D/Sprite" node_paths=PackedStringArray("node_to_affect")]
  57. script = ExtResource("2_sxeqe")
  58. node_to_affect = NodePath("..")
  59. property_name = "texture"
  60. mode = 1
  61. resource_json = ExtResource("3_35mwj")
  62. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  63. [node name="Collision" type="CollisionShape2D" parent="AnimatableBody2D"]
  64. position = Vector2(0, 4)
  65. shape = SubResource("RectangleShape2D_mq7me")
  66. [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
  67. libraries = {
  68. &"": SubResource("AnimationLibrary_kqk52")
  69. }
  70. autoplay = "Move"
  71. [node name="LevelEditorVisibleNode" type="Node2D" parent="."]
  72. visibility_layer = 2
  73. script = ExtResource("4_2ywm4")
  74. metadata/_custom_type_script = "uid://cpwloakvp672a"
  75. [node name="Line2D" type="Line2D" parent="LevelEditorVisibleNode"]
  76. texture_repeat = 2
  77. points = PackedVector2Array(0, 128, 0, 0)
  78. width = 1.0
  79. texture = ExtResource("5_fity7")
  80. texture_mode = 1
  81. [node name="SecondQuestReplacer" type="Node" parent="."]
  82. script = ExtResource("6_fity7")
  83. new_scene = "uid://cjkmd2yf3f84v"
  84. metadata/_custom_type_script = "uid://d0mqkvopasu8k"