summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLogan <logan@cflip.net>2023-05-15 05:49:19 -0600
committerLogan <logan@cflip.net>2023-05-15 05:49:19 -0600
commitedf2381028f6643637d788c9e40bfa12681608cd (patch)
treef61bf81e664091ca34aef235bc1a8899133a3198
parent35e5e8560da7b66bb988d0f1fc1db521e6e59bd7 (diff)
Fix physics sleep preventing ball position resetHEADmaster
-rw-r--r--scripts/basketball.gd1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/basketball.gd b/scripts/basketball.gd
index 57c211c..9b0f72b 100644
--- a/scripts/basketball.gd
+++ b/scripts/basketball.gd
@@ -37,6 +37,7 @@ func toggle_mode():
$GhostSprite.visible = false
$Sprite2D.position = Vector2(0, 0)
else:
+ sleeping = false
# Adds offset of ball's rotation to sprite AFTER the entire object has rotated from physics.
# Done to keep appearance of same rotation to add consistency when resetting the ball.
$Sprite2D.rotation += rotation