summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2022-09-24 20:45:34 -0600
committercflip <cflip@cflip.net>2022-09-24 20:45:34 -0600
commitf7b5af4ec8ef37c180c3dbdb9c0f787d5510907f (patch)
tree486a5a52599f98659b0c8a942311f218d04a4676
parentc0862abe758c30b917186e1a70c94095ff068d7c (diff)
Don't allow dragging the basketball while it is in physics mode
-rw-r--r--scripts/basketball.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/basketball.gd b/scripts/basketball.gd
index 51137e3..14e898d 100644
--- a/scripts/basketball.gd
+++ b/scripts/basketball.gd
@@ -49,7 +49,7 @@ func _process(delta):
start_position.x = clamp(start_position.x, 0, 1024)
func _input(event):
- if event.is_action_pressed("shoot") and ready_to_hold:
+ if event.is_action_pressed("shoot") and ready_to_hold and waiting_for_shoot:
$Sprite.position = event.position - start_position
$GhostSprite.visible = true
$GhostSprite.rotation = $Sprite.rotation