Plus de feux rouges et des portes qui vont vivre
Et oui du nouveau encore!
This commit is contained in:
@@ -61,3 +61,15 @@ position = Vector2(-1, 37)
|
||||
position = Vector2(1, -13)
|
||||
shape = SubResource("RectangleShape2D_1kv0e")
|
||||
target_position = Vector2(0, -48)
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
collision_layer = 4
|
||||
collision_mask = 4
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
position = Vector2(0, 43)
|
||||
rotation = 1.5708
|
||||
shape = SubResource("CapsuleShape2D_a4vmx")
|
||||
|
||||
[connection signal="area_entered" from="Area2D" to="." method="_on_area_2d_area_entered"]
|
||||
[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
|
||||
|
||||
@@ -34,3 +34,6 @@ func _physics_process(delta):
|
||||
last_facing_direction = velocity.normalized()
|
||||
|
||||
updateFacingDirectionInAnimationTree()
|
||||
|
||||
func _on_area_2d_body_entered(body: Node2D) -> void:
|
||||
print(body)
|
||||
|
||||
Reference in New Issue
Block a user