Fixed moving blocks
This commit is contained in:
1 parent
e7e33fa481
commit
22abac2f11
9 files changed
+135
-26
No files matched your search
@@ -0,0 +1,40 @@
|
||||
[gd_scene format=3 uid="uid://b61sumdnt0qqh"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ckn8q0fyt01j3" path="res://hidden_horizontal_moving_block.gd" id="1_c4g4s"]
|
||||
[ext_resource type="Texture2D" uid="uid://blbaaqyrt8dtk" path="res://art/block/block.png" id="2_c7hrt"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_f3sb7"]
|
||||
size = Vector2(32, 13)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_3uo2v"]
|
||||
size = Vector2(32, 4.0000687)
|
||||
|
||||
[node name="HiddenHorizontalMovingBlock" type="RigidBody2D" unique_id=1409784601]
|
||||
visible = false
|
||||
gravity_scale = 0.0
|
||||
freeze = true
|
||||
script = ExtResource("1_c4g4s")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1866755047]
|
||||
position = Vector2(0, -1.5)
|
||||
shape = SubResource("RectangleShape2D_f3sb7")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1680278216]
|
||||
texture_filter = 1
|
||||
position = Vector2(-8, -2)
|
||||
texture = ExtResource("2_c7hrt")
|
||||
|
||||
[node name="Sprite2D2" type="Sprite2D" parent="." unique_id=549053101]
|
||||
texture_filter = 1
|
||||
position = Vector2(8, -2)
|
||||
texture = ExtResource("2_c7hrt")
|
||||
|
||||
[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.000615094, -8.999966)
|
||||
shape = SubResource("RectangleShape2D_3uo2v")
|
||||
|
||||
[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