diff options
author | dusoleil <howcansocksbereal@gmail.com> | 2022-07-24 12:57:54 -0400 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2022-07-24 12:57:54 -0400 |
commit | e2867a50da25ed5c2b481b442523be2f67082aff (patch) | |
tree | 15523bc18fb534c710dc944047b9f4ee6515b114 /Chicken.gd | |
parent | 32b579710afbbad20372820d59d7bf042d11818b (diff) | |
download | chicken-chaser-gd-e2867a50da25ed5c2b481b442523be2f67082aff.tar.gz chicken-chaser-gd-e2867a50da25ed5c2b481b442523be2f67082aff.zip |
Ignore unused arguments
Diffstat (limited to 'Chicken.gd')
-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 |