From 99ad396fa38058da6c44bbea100d5ddc9196c16a Mon Sep 17 00:00:00 2001 From: AbnormalPoof Date: Mon, 29 Sep 2025 01:54:56 -0500 Subject: [PATCH] Take into account the confirm sound's length when fading out in the Game Over screen --- source/funkin/play/GameOverSubState.hx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/funkin/play/GameOverSubState.hx b/source/funkin/play/GameOverSubState.hx index f7cd53e50..3d619b16b 100644 --- a/source/funkin/play/GameOverSubState.hx +++ b/source/funkin/play/GameOverSubState.hx @@ -377,8 +377,12 @@ class GameOverSubState extends MusicBeatSubState boyfriend.playAnimation('deathConfirm' + animationSuffix, true); } + // confirm music length divided by 7000 + // this is here so mods with longer confirm sounds don't have it cut off!!! + final FADE_TIMER:Float = (gameOverMusic?.length ?? 0) / 7000; + // After the animation finishes... - new FlxTimer().start(0.7, function(tmr:FlxTimer) { + new FlxTimer().start(FADE_TIMER, function(tmr:FlxTimer) { // ...fade out the graphics. Then after that happens... var resetPlaying = function(pixel:Bool = false) {