seen video save data shit

This commit is contained in:
Cameron Taylor 2021-04-18 03:47:48 -04:00
parent b501d620b8
commit ac8a8aef42
2 changed files with 8 additions and 0 deletions

View file

@ -109,6 +109,11 @@ class TitleState extends MusicBeatState
StoryMenuState.weekUnlocked[0] = true;
}
if (FlxG.save.data.seenVideo != null)
{
VideoState.seenVideo = FlxG.save.data.seenVideo;
}
#if FREEPLAY
FlxG.switchState(new FreeplayState());
#elseif ANIMATE

View file

@ -23,6 +23,9 @@ class VideoState extends MusicBeatState
seenVideo = true;
FlxG.save.data.seenVideo = true;
FlxG.save.flush();
if (FlxG.sound.music != null)
FlxG.sound.music.stop();