1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-11-28 15:26:12 +00:00

Fix references to camCutscene

This commit is contained in:
gamerbross 2024-05-20 23:52:45 +02:00 committed by EliteMasterEric
parent 17f5a06256
commit e23e6c160d

View file

@ -81,12 +81,11 @@ class VideoCutscene
// Trigger the cutscene. Don't play the song in the background. // Trigger the cutscene. Don't play the song in the background.
PlayState.instance.isInCutscene = true; PlayState.instance.isInCutscene = true;
PlayState.instance.camHUD.visible = false; PlayState.instance.camHUD.visible = false;
PlayState.instance.camCutscene.visible = true;
// Display a black screen to hide the game while the video is playing. // Display a black screen to hide the game while the video is playing.
blackScreen = new FlxSprite(-200, -200).makeGraphic(FlxG.width * 2, FlxG.height * 2, FlxColor.BLACK); blackScreen = new FlxSprite(-200, -200).makeGraphic(FlxG.width * 2, FlxG.height * 2, FlxColor.BLACK);
blackScreen.scrollFactor.set(0, 0); blackScreen.scrollFactor.set(0, 0);
blackScreen.cameras = [PlayState.instance.camCutscene]; blackScreen.cameras = [PlayState.instance.camOther];
PlayState.instance.add(blackScreen); PlayState.instance.add(blackScreen);
VideoCutscene.cutsceneType = cutsceneType; VideoCutscene.cutsceneType = cutsceneType;
@ -120,7 +119,7 @@ class VideoCutscene
vid.finishCallback = finishVideo.bind(0.5); vid.finishCallback = finishVideo.bind(0.5);
vid.cameras = [PlayState.instance.camCutscene]; vid.cameras = [PlayState.instance.camOther];
PlayState.instance.add(vid); PlayState.instance.add(vid);
@ -147,7 +146,7 @@ class VideoCutscene
vid.bitmap.onEndReached.add(finishVideo.bind(0.5)); vid.bitmap.onEndReached.add(finishVideo.bind(0.5));
vid.autoPause = FlxG.autoPause; vid.autoPause = FlxG.autoPause;
vid.cameras = [PlayState.instance.camCutscene]; vid.cameras = [PlayState.instance.camOther];
PlayState.instance.add(vid); PlayState.instance.add(vid);
@ -305,7 +304,6 @@ class VideoCutscene
vid = null; vid = null;
#end #end
PlayState.instance.camCutscene.visible = true;
PlayState.instance.camHUD.visible = true; PlayState.instance.camHUD.visible = true;
FlxTween.tween(blackScreen, {alpha: 0}, transitionTime, FlxTween.tween(blackScreen, {alpha: 0}, transitionTime,