cutscene shit in progress

This commit is contained in:
Cameron Taylor 2021-04-18 04:09:56 -04:00
parent 48964c3c08
commit d964223ee7
4 changed files with 49 additions and 39 deletions

Binary file not shown.

View File

@ -1029,6 +1029,15 @@ class PlayState extends MusicBeatState
{
inCutscene = true;
var vid:FlxVideo = new FlxVideo('music/gunsCutscene.mp4');
vid.finishCallback = function()
{
FlxTween.tween(FlxG.camera, {zoom: defaultCamZoom}, (Conductor.crochet / 1000) * 5, {ease: FlxEase.quadInOut});
startCountdown();
cameraMovement();
};
/*
camFollow.setPosition(camPos.x, camPos.y);
camHUD.visible = false;
@ -1071,7 +1080,7 @@ class PlayState extends MusicBeatState
});
camHUD.visible = true;
});
});*/
}
/**

View File

@ -47,7 +47,7 @@ import sys.thread.Thread;
class TitleState extends MusicBeatState
{
static var initialized:Bool = false;
public static var initialized:Bool = false;
var blackScreen:FlxSprite;
var credGroup:FlxGroup;

View File

@ -64,6 +64,7 @@ class VideoState extends MusicBeatState
netStream.dispose();
FlxG.removeChild(video);
TitleState.initialized = false;
FlxG.switchState(new TitleState());
}