summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-07-24 12:57:54 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-07-24 12:57:54 -0400
commite2867a50da25ed5c2b481b442523be2f67082aff (patch)
tree15523bc18fb534c710dc944047b9f4ee6515b114
parent32b579710afbbad20372820d59d7bf042d11818b (diff)
downloadchicken-chaser-gd-e2867a50da25ed5c2b481b442523be2f67082aff.tar.gz
chicken-chaser-gd-e2867a50da25ed5c2b481b442523be2f67082aff.zip
Ignore unused arguments
-rw-r--r--Chicken.gd8
1 files changed, 4 insertions, 4 deletions
diff --git a/Chicken.gd b/Chicken.gd
index 31c6520..1a03c1b 100644
--- a/Chicken.gd
+++ b/Chicken.gd
@@ -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