From 9932b228bbf886c95ea1323e9d2106e508e86bd4 Mon Sep 17 00:00:00 2001 From: KadeDev Date: Tue, 9 Mar 2021 13:01:50 -0800 Subject: [PATCH] fixed health bar in downscroll --- source/MainMenuState.hx | 2 +- source/PlayState.hx | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/source/MainMenuState.hx b/source/MainMenuState.hx index 1d4742a..e91cd38 100644 --- a/source/MainMenuState.hx +++ b/source/MainMenuState.hx @@ -31,7 +31,7 @@ class MainMenuState extends MusicBeatState var newGaming2:FlxText; var newInput:Bool = true; - public static var kadeEngineVer:String = "1.1"; + public static var kadeEngineVer:String = "1.1.1"; public static var gameVer:String = "0.2.7.1"; var magenta:FlxSprite; diff --git a/source/PlayState.hx b/source/PlayState.hx index 564dca7..3646369 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -701,7 +701,10 @@ class PlayState extends MusicBeatState FlxG.fixedTimestep = false; + healthBarBG = new FlxSprite(0, FlxG.height * 0.9).loadGraphic(Paths.image('healthBar')); + if (FlxG.save.data.downscroll) + healthBarBG.y = 50; healthBarBG.screenCenter(X); healthBarBG.scrollFactor.set(); add(healthBarBG);