Fixed moving blocks
This commit is contained in:
1 parent
e7e33fa481
commit
22abac2f11
9 files changed
+135
-26
No files matched your search
@@ -4,18 +4,18 @@
|
||||
[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)
|
||||
size = Vector2(32, 13)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_3uo2v"]
|
||||
size = Vector2(38, 23)
|
||||
size = Vector2(32, 4.0000687)
|
||||
|
||||
[node name="Block" type="RigidBody2D" unique_id=1409784601]
|
||||
[node name="HorizontalMovingBlock" 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)
|
||||
position = Vector2(0, -1.5)
|
||||
shape = SubResource("RectangleShape2D_f3sb7")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1680278216]
|
||||
@@ -29,12 +29,11 @@ position = Vector2(8, -2)
|
||||
texture = ExtResource("1_m1vtb")
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="." unique_id=1910272404]
|
||||
rotation = -6.834404e-05
|
||||
|
||||
[node name="ShapeCast2D" type="CollisionShape2D" parent="Area2D" unique_id=934904308]
|
||||
position = Vector2(0, -3.5)
|
||||
position = Vector2(0.000615094, -8.999966)
|
||||
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