From a9d3dbb7f8ce8566903cd9d538c58ac2c676236e Mon Sep 17 00:00:00 2001 From: MtH Date: Mon, 12 Apr 2021 00:53:37 +0200 Subject: [PATCH] double gf on tutorial fix and inCutscene for week7 --- source/PlayState.hx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/source/PlayState.hx b/source/PlayState.hx index 3de0871bd..59f6eaad3 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -928,6 +928,8 @@ class PlayState extends MusicBeatState function ughIntro() { + inCutscene = true; + FlxG.sound.playMusic(Paths.music('DISTORTO'), 0); FlxG.sound.music.fadeIn(5, 0, 0.5); @@ -957,7 +959,9 @@ class PlayState extends MusicBeatState { boyfriend.playAnim('singUP'); // play sound - FlxG.sound.play(Paths.sound('bfBeep')); + FlxG.sound.play(Paths.sound('bfBeep'), function() { + boyfriend.playAnim('idle'); + }); }); new FlxTimer().start(3, function(swaggy:FlxTimer) @@ -990,6 +994,8 @@ class PlayState extends MusicBeatState function gunsIntro() { + inCutscene = true; + camFollow.setPosition(camPos.x, camPos.y); camHUD.visible = false; @@ -1048,6 +1054,8 @@ class PlayState extends MusicBeatState function stressIntro() { + inCutscene = true; + // for story mode shit camFollow.setPosition(camPos.x, camPos.y); @@ -1382,8 +1390,6 @@ class PlayState extends MusicBeatState function startCountdown():Void { - gf.visible = true; - inCutscene = false; generateStaticArrows(0);