Skip to content

Commit

Permalink
Change player monitoring toggle to shape.disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Bradfield committed Nov 17, 2017
1 parent c368871 commit 256ea73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Player.gd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func _ready():
func start(pos):
position = pos
show()
monitoring = true
$Collision.disabled = false

func _process(delta):
velocity = Vector2()
Expand Down Expand Up @@ -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")

Expand Down
4 changes: 2 additions & 2 deletions Player.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit 256ea73

Please sign in to comment.