diff --git a/Player.gd b/Player.gd index 20fa4bd..0186456 100644 --- a/Player.gd +++ b/Player.gd @@ -13,7 +13,7 @@ func _ready(): func start(pos): position = pos show() - monitoring = true + $Collision.disabled = false func _process(delta): velocity = Vector2() @@ -44,7 +44,7 @@ func _process(delta): $AnimatedSprite.flip_v = velocity.y > 0 func _on_Player_body_entered( body ): - call_deferred("set_monitoring", false) + $Collision.disabled = true hide() emit_signal("hit") diff --git a/Player.tscn b/Player.tscn index 71f6527..911cfe3 100644 --- a/Player.tscn +++ b/Player.tscn @@ -23,8 +23,8 @@ animations = [ { [sub_resource type="CapsuleShape2D" id=2] custom_solver_bias = 0.0 -radius = 39.3017 -height = 21.3597 +radius = 26.5155 +height = 13.8847 [sub_resource type="Gradient" id=3]