diff options
Diffstat (limited to 'scripts/basketball.gd')
-rw-r--r-- | scripts/basketball.gd | 2 |
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 |