CloudPlatform.tscn 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. [gd_scene load_steps=8 format=3 uid="uid://bvwo8snk5ixaa"]
  2. [ext_resource type="Script" uid="uid://bosxtidiegjv0" path="res://Scripts/Classes/Entities/Objects/CloudPlatform.gd" id="1_s4l5y"]
  3. [ext_resource type="Texture2D" uid="uid://7g55o2cjwrap" path="res://Assets/Sprites/Tilesets/CloudPlatform.png" id="2_ikg3d"]
  4. [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_1ny6m"]
  5. [ext_resource type="Script" uid="uid://cnheej0sxmoxg" path="res://Scripts/Parts/PlayerDetection.gd" id="3_np2pg"]
  6. [ext_resource type="JSON" path="res://Assets/Sprites/Tilesets/CloudPlatform.json" id="4_fy0hu"]
  7. [sub_resource type="RectangleShape2D" id="RectangleShape2D_1ny6m"]
  8. size = Vector2(48, 8)
  9. [sub_resource type="RectangleShape2D" id="RectangleShape2D_fy0hu"]
  10. size = Vector2(42, 8)
  11. [node name="CloudPlatform" type="AnimatableBody2D"]
  12. sync_to_physics = false
  13. script = ExtResource("1_s4l5y")
  14. [node name="Sprite" type="NinePatchRect" parent="."]
  15. offset_left = -24.0
  16. offset_right = 24.0
  17. offset_bottom = 8.0
  18. texture = ExtResource("2_ikg3d")
  19. patch_margin_left = 8
  20. patch_margin_right = 8
  21. axis_stretch_horizontal = 1
  22. [node name="ResourceSetterNew" type="Node" parent="Sprite" node_paths=PackedStringArray("node_to_affect")]
  23. script = ExtResource("3_1ny6m")
  24. node_to_affect = NodePath("..")
  25. property_name = "texture"
  26. mode = 1
  27. resource_json = ExtResource("4_fy0hu")
  28. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  29. [node name="Collision" type="CollisionShape2D" parent="."]
  30. position = Vector2(0, 4)
  31. shape = SubResource("RectangleShape2D_1ny6m")
  32. [node name="PlayerDetection" type="Area2D" parent="."]
  33. script = ExtResource("3_np2pg")
  34. metadata/_custom_type_script = "uid://cnheej0sxmoxg"
  35. [node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerDetection"]
  36. position = Vector2(0, -4)
  37. shape = SubResource("RectangleShape2D_fy0hu")
  38. [connection signal="player_entered" from="PlayerDetection" to="." method="on_player_entered"]