| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- [gd_scene load_steps=8 format=3 uid="uid://bvwo8snk5ixaa"]
- [ext_resource type="Script" uid="uid://bosxtidiegjv0" path="res://Scripts/Classes/Entities/Objects/CloudPlatform.gd" id="1_s4l5y"]
- [ext_resource type="Texture2D" uid="uid://7g55o2cjwrap" path="res://Assets/Sprites/Tilesets/CloudPlatform.png" id="2_ikg3d"]
- [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_1ny6m"]
- [ext_resource type="Script" uid="uid://cnheej0sxmoxg" path="res://Scripts/Parts/PlayerDetection.gd" id="3_np2pg"]
- [ext_resource type="JSON" path="res://Assets/Sprites/Tilesets/CloudPlatform.json" id="4_fy0hu"]
- [sub_resource type="RectangleShape2D" id="RectangleShape2D_1ny6m"]
- size = Vector2(48, 8)
- [sub_resource type="RectangleShape2D" id="RectangleShape2D_fy0hu"]
- size = Vector2(42, 8)
- [node name="CloudPlatform" type="AnimatableBody2D"]
- sync_to_physics = false
- script = ExtResource("1_s4l5y")
- [node name="Sprite" type="NinePatchRect" parent="."]
- offset_left = -24.0
- offset_right = 24.0
- offset_bottom = 8.0
- texture = ExtResource("2_ikg3d")
- patch_margin_left = 8
- patch_margin_right = 8
- axis_stretch_horizontal = 1
- [node name="ResourceSetterNew" type="Node" parent="Sprite" node_paths=PackedStringArray("node_to_affect")]
- script = ExtResource("3_1ny6m")
- node_to_affect = NodePath("..")
- property_name = "texture"
- mode = 1
- resource_json = ExtResource("4_fy0hu")
- metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
- [node name="Collision" type="CollisionShape2D" parent="."]
- position = Vector2(0, 4)
- shape = SubResource("RectangleShape2D_1ny6m")
- [node name="PlayerDetection" type="Area2D" parent="."]
- script = ExtResource("3_np2pg")
- metadata/_custom_type_script = "uid://cnheej0sxmoxg"
- [node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerDetection"]
- position = Vector2(0, -4)
- shape = SubResource("RectangleShape2D_fy0hu")
- [connection signal="player_entered" from="PlayerDetection" to="." method="on_player_entered"]
|