From 8302b2d2baa57bce89c07e048459ce6a40c11be3 Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Wed, 23 Mar 2022 23:27:48 -0400 Subject: [PATCH] quick and dirty freeplay exit transition fix --- source/funkin/FreeplayState.hx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/source/funkin/FreeplayState.hx b/source/funkin/FreeplayState.hx index c2d4c2680..3706b9f9f 100644 --- a/source/funkin/FreeplayState.hx +++ b/source/funkin/FreeplayState.hx @@ -1,6 +1,5 @@ package funkin; -import funkin.Controls.Control; import flash.text.TextField; import flixel.FlxCamera; import flixel.FlxGame; @@ -21,16 +20,17 @@ import flixel.tweens.FlxTween; import flixel.util.FlxColor; import flixel.util.FlxSpriteUtil; import flixel.util.FlxTimer; +import funkin.Controls.Control; import funkin.freeplayStuff.BGScrollingText; import funkin.freeplayStuff.DJBoyfriend; import funkin.freeplayStuff.FreeplayScore; import funkin.freeplayStuff.SongMenuItem; -import lime.app.Future; -import lime.utils.Assets; +import funkin.play.PlayState; import funkin.shaderslmfao.AngleMask; import funkin.shaderslmfao.PureColor; import funkin.shaderslmfao.StrokeShader; -import funkin.play.PlayState; +import lime.app.Future; +import lime.utils.Assets; using StringTools; @@ -498,6 +498,9 @@ class FreeplayState extends MusicBeatSubstate if (controls.BACK) { FlxG.sound.play(Paths.sound('cancelMenu')); + + FlxTransitionableState.skipNextTransIn = true; + FlxTransitionableState.skipNextTransOut = true; FlxG.switchState(new MainMenuState()); }