diff --git a/source/funkin/play/HealthIcon.hx b/source/funkin/play/HealthIcon.hx index e72810d68..083d26783 100644 --- a/source/funkin/play/HealthIcon.hx +++ b/source/funkin/play/HealthIcon.hx @@ -111,6 +111,8 @@ class HealthIcon extends FlxSprite this.antialiasing = !isPixel; this.flipX = playerId == 0; + + initTargetSize(); } function set_characterId(value:String):String @@ -209,6 +211,12 @@ class HealthIcon extends FlxSprite } } + inline function initTargetSize() + { + setGraphicSize(150); + updateHitbox(); + } + function updateHealthIcon(health:Float) { // We want to efficiently handle animation playback