Improved moving platform
This commit is contained in:
1 parent
7bcdfb1f7a
commit
2342c5b372
13 files changed
+55
-21
No files matched your search
@@ -4,7 +4,10 @@
|
||||
[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(16, 14)
|
||||
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
|
||||
@@ -12,8 +15,26 @@ 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"]
|
||||
Reference in new issue
Block a user