1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-29 02:04:28 +00:00

quick and dirty freeplay exit transition fix

This commit is contained in:
Cameron Taylor 2022-03-23 23:27:48 -04:00
parent 7c0cb9c69c
commit 8302b2d2ba

View file

@ -1,6 +1,5 @@
package funkin; package funkin;
import funkin.Controls.Control;
import flash.text.TextField; import flash.text.TextField;
import flixel.FlxCamera; import flixel.FlxCamera;
import flixel.FlxGame; import flixel.FlxGame;
@ -21,16 +20,17 @@ import flixel.tweens.FlxTween;
import flixel.util.FlxColor; import flixel.util.FlxColor;
import flixel.util.FlxSpriteUtil; import flixel.util.FlxSpriteUtil;
import flixel.util.FlxTimer; import flixel.util.FlxTimer;
import funkin.Controls.Control;
import funkin.freeplayStuff.BGScrollingText; import funkin.freeplayStuff.BGScrollingText;
import funkin.freeplayStuff.DJBoyfriend; import funkin.freeplayStuff.DJBoyfriend;
import funkin.freeplayStuff.FreeplayScore; import funkin.freeplayStuff.FreeplayScore;
import funkin.freeplayStuff.SongMenuItem; import funkin.freeplayStuff.SongMenuItem;
import lime.app.Future; import funkin.play.PlayState;
import lime.utils.Assets;
import funkin.shaderslmfao.AngleMask; import funkin.shaderslmfao.AngleMask;
import funkin.shaderslmfao.PureColor; import funkin.shaderslmfao.PureColor;
import funkin.shaderslmfao.StrokeShader; import funkin.shaderslmfao.StrokeShader;
import funkin.play.PlayState; import lime.app.Future;
import lime.utils.Assets;
using StringTools; using StringTools;
@ -498,6 +498,9 @@ class FreeplayState extends MusicBeatSubstate
if (controls.BACK) if (controls.BACK)
{ {
FlxG.sound.play(Paths.sound('cancelMenu')); FlxG.sound.play(Paths.sound('cancelMenu'));
FlxTransitionableState.skipNextTransIn = true;
FlxTransitionableState.skipNextTransOut = true;
FlxG.switchState(new MainMenuState()); FlxG.switchState(new MainMenuState());
} }