fix video cutscenes (#372)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user