diff options
-rw-r--r-- | Chicken.gd | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -22,7 +22,7 @@ func roll_die(chance): func _physics_process(delta): if !is_on_floor(): - move_and_slide(Vector3.DOWN, Vector3.UP) + var _vmp = move_and_slide(Vector3.DOWN, Vector3.UP) if chasing: state_chasing(delta) return @@ -78,19 +78,19 @@ func state_moving(_delta): mov_velocity *= mov_steps var chasing -func _on_Detection_body_entered(body): +func _on_Detection_body_entered(_body): chasing = true anim[state].travel("MOVING") anim[flap_speed] = 8.0 $SmoothRotation.stop_all() -func _on_Detection_body_exited(body): +func _on_Detection_body_exited(_body): chasing = false anim[state].travel("IDLE") anim[flap_speed] = 2.0 mov_steps = 0.0 -func state_chasing(delta): +func state_chasing(_delta): anim[wings].travel("FLAP") var local_forward = -transform.basis.z.normalized() var chaser = $Detection.get_overlapping_bodies()[0].transform.origin |