fix video cutscenes (#372)

This commit is contained in:
TheZoroForce240
2024-08-20 21:50:12 +02:00
committed by GitHub
parent a3d9ddb74e
commit c294c70817
@@ -56,8 +56,13 @@ class VideoCutscene extends Cutscene {
parseSubtitles();
video = new FlxVideo();
video.onEndReached.add(video.dispose);
video.onEndReached.add(function()
{
video.dispose();
FlxG.removeChild(video);
});
video.onEndReached.add(close);
FlxG.addChildBelowMouse(video);
//cover = new FlxSprite(0, FlxG.height * 0.85).makeSolid(FlxG.width + 50, FlxG.height + 50, 0xFF000000);
//cover.scrollFactor.set(0, 0);