From f7b5af4ec8ef37c180c3dbdb9c0f787d5510907f Mon Sep 17 00:00:00 2001 From: cflip Date: Sat, 24 Sep 2022 20:45:34 -0600 Subject: Don't allow dragging the basketball while it is in physics mode --- scripts/basketball.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3