GrappleTest/Objects/MovingPlatform/MovingPlatform.tscn
2024-03-17 21:56:16 -05:00

30 lines
1 KiB
Text

[gd_scene load_steps=5 format=3 uid="uid://vfpfao4e18vn"]
[ext_resource type="Script" path="res://Objects/MovingPlatform/MovingPlatform.gd" id="1_01pul"]
[ext_resource type="Texture2D" uid="uid://bwj4inpj7mawo" path="res://Objects/MovingPlatform/Sprite.png" id="1_1t8bc"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_o874y"]
size = Vector2(128, 32)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_yhojp"]
size = Vector2(128, 30)
[node name="MovingPlatform" type="AnimatableBody2D"]
script = ExtResource("1_01pul")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_1t8bc")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_o874y")
[node name="Area2D" type="Area2D" parent="."]
position = Vector2(0, -10)
collision_layer = 2
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("RectangleShape2D_yhojp")
[connection signal="body_shape_entered" from="Area2D" to="." method="_on_area_2d_body_shape_entered"]