tweaks to crouch etc
This commit is contained in:
@@ -11,8 +11,10 @@ func _process(delta):
|
||||
|
||||
func _on_body_entered(body):
|
||||
if body.is_in_group("player"):
|
||||
body.velocity = Vector3(0,0,0)
|
||||
body.is_climbing = true
|
||||
body.global_position.y += .1
|
||||
if body.global_position.y < global_position.y:
|
||||
body.global_position.y += .2
|
||||
|
||||
|
||||
func _on_body_exited(body):
|
||||
|
||||
Reference in New Issue
Block a user