SidewaysPlatform.tscn 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. [gd_scene load_steps=11 format=3 uid="uid://c8m8455b6ikrn"]
  2. [ext_resource type="Texture2D" uid="uid://bk0p52ttwojml" path="res://Assets/Sprites/Tilesets/Platform.png" id="1_mnf3m"]
  3. [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="2_lvvvw"]
  4. [ext_resource type="JSON" path="res://Assets/Sprites/Tilesets/Platform.json" id="3_7kqku"]
  5. [ext_resource type="Script" uid="uid://cpwloakvp672a" path="res://Scripts/Parts/EditorVisibleNode.gd" id="4_kqk52"]
  6. [ext_resource type="Texture2D" uid="uid://dpdrrkqtcedgm" path="res://Assets/Sprites/Tilesets/DottedLine.png" id="5_b0jr6"]
  7. [ext_resource type="Script" uid="uid://d0mqkvopasu8k" path="res://Scripts/Classes/Components/SecondQuestReplaceComponent.gd" id="6_b0jr6"]
  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 = 2.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, 2),
  22. "transitions": PackedFloat32Array(1, 1),
  23. "update": 0,
  24. "values": [Vector2(0, 0), Vector2(-48, 0)]
  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. offset_left = -24.0
  49. offset_right = 24.0
  50. offset_bottom = 8.0
  51. texture = ExtResource("1_mnf3m")
  52. patch_margin_left = 8
  53. patch_margin_right = 8
  54. axis_stretch_horizontal = 1
  55. [node name="ResourceSetter" type="Node" parent="AnimatableBody2D/Sprite" node_paths=PackedStringArray("node_to_affect")]
  56. script = ExtResource("2_lvvvw")
  57. node_to_affect = NodePath("..")
  58. property_name = "texture"
  59. mode = 1
  60. resource_json = ExtResource("3_7kqku")
  61. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  62. [node name="Collision" type="CollisionShape2D" parent="AnimatableBody2D"]
  63. position = Vector2(0, 4)
  64. shape = SubResource("RectangleShape2D_mq7me")
  65. [node name="VisibleOnScreenEnabler2D" type="VisibleOnScreenEnabler2D" parent="AnimatableBody2D"]
  66. self_modulate = Color(1, 1, 1, 0)
  67. position = Vector2(0, 4)
  68. scale = Vector2(3.2, 1.2)
  69. enable_node_path = NodePath("../..")
  70. [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
  71. libraries = {
  72. &"": SubResource("AnimationLibrary_kqk52")
  73. }
  74. autoplay = "Move"
  75. [node name="LevelEditorVisibleNode" type="Node2D" parent="."]
  76. visible = false
  77. visibility_layer = 2
  78. script = ExtResource("4_kqk52")
  79. metadata/_custom_type_script = "uid://cpwloakvp672a"
  80. [node name="Line2D" type="Line2D" parent="LevelEditorVisibleNode"]
  81. texture_repeat = 2
  82. position = Vector2(0, 4)
  83. points = PackedVector2Array(-48, 0, 0, 0)
  84. width = 1.0
  85. texture = ExtResource("5_b0jr6")
  86. texture_mode = 1
  87. [node name="SecondQuestReplacer" type="Node" parent="."]
  88. script = ExtResource("6_b0jr6")
  89. new_scene = "uid://b3or4h5ke6lni"
  90. metadata/_custom_type_script = "uid://d0mqkvopasu8k"