Fix credits vs pause menu camera problem

This commit is contained in:
2023-04-05 11:56:05 -06:00
parent 35e16f7ce9
commit 8e80ba9ace

View File

@@ -441,6 +441,7 @@
(method :Void rollCredits [:Array<CreditsLine> credits cc]
(localVar bg (new FlxSprite))
(bg.makeGraphic FlxG.width FlxG.height FlxColor.BLACK true)
(set bg.cameras [flxMovie.uiCamera])
(FlxG.state.add bg)
(localVar &mut textY FlxG.height)
(var oneColSize 64)
@@ -483,4 +484,5 @@
(doFor text creditsText
(FlxG.state.add text)
(set text.cameras [flxMovie.uiCamera])
(FlxTween.linearMotion text text.x text.y text.x (- text.y textY) 200 false (object onComplete ->:Void _ (cc)))))