summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-06-07 17:56:48 +0200
committermetamuffin <metamuffin@disroot.org>2025-06-07 17:56:48 +0200
commitea1f60b0ba95a0f8b96e294c6aee608357306d20 (patch)
tree171aa3aa0a2089e76f5ffa032451e31ed26f1fe8
parent98e3435b0914d145b53f5bba084ba4359887846e (diff)
downloadhurrycurry-ea1f60b0ba95a0f8b96e294c6aee608357306d20.tar
hurrycurry-ea1f60b0ba95a0f8b96e294c6aee608357306d20.tar.bz2
hurrycurry-ea1f60b0ba95a0f8b96e294c6aee608357306d20.tar.zst
delay scene load on menu close by one frame for animation
-rw-r--r--client/menu/scene_transition.gd1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/menu/scene_transition.gd b/client/menu/scene_transition.gd
index 87a32202..b6479a7f 100644
--- a/client/menu/scene_transition.gd
+++ b/client/menu/scene_transition.gd
@@ -51,6 +51,7 @@ func next():
self.mouse_filter = Control.MOUSE_FILTER_STOP
black_anim.play("fade")
await black_anim.animation_finished
+ await get_tree().process_frame # animation finishes one frame early
s_current = false
fading = false
await next()