[gd_scene format=3 uid="uid://div6quttr84u1"] [ext_resource type="Script" uid="uid://yaqgvctkobnq" path="res://horizontal_moving_block.gd" id="1_3uo2v"] [ext_resource type="Texture2D" uid="uid://blbaaqyrt8dtk" path="res://art/block/block.png" id="1_m1vtb"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_f3sb7"] size = Vector2(32, 16) [sub_resource type="RectangleShape2D" id="RectangleShape2D_3uo2v"] size = Vector2(38, 23) [node name="Block" type="RigidBody2D" unique_id=1409784601] gravity_scale = 0.0 freeze = true script = ExtResource("1_3uo2v") [node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1866755047] position = Vector2(0, -2) shape = SubResource("RectangleShape2D_f3sb7") [node name="Sprite2D" type="Sprite2D" parent="." unique_id=1680278216] texture_filter = 1 position = Vector2(-8, -2) texture = ExtResource("1_m1vtb") [node name="Sprite2D2" type="Sprite2D" parent="." unique_id=549053101] texture_filter = 1 position = Vector2(8, -2) texture = ExtResource("1_m1vtb") [node name="Area2D" type="Area2D" parent="." unique_id=1910272404] [node name="ShapeCast2D" type="CollisionShape2D" parent="Area2D" unique_id=934904308] position = Vector2(0, -3.5) shape = SubResource("RectangleShape2D_3uo2v") [connection signal="body_entered" from="." to="." method="on_enter"] [connection signal="body_exited" from="." to="." method="on_leave"] [connection signal="body_entered" from="Area2D" to="." method="on_enter"] [connection signal="body_exited" from="Area2D" to="." method="on_leave"]