1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-26 15:07:14 +00:00

pixel icon placement fix

This commit is contained in:
Cameron Taylor 2022-04-29 21:45:56 -04:00
parent 31b393b014
commit 231f76c893

View file

@ -111,6 +111,8 @@ class HealthIcon extends FlxSprite
this.antialiasing = !isPixel; this.antialiasing = !isPixel;
this.flipX = playerId == 0; this.flipX = playerId == 0;
initTargetSize();
} }
function set_characterId(value:String):String function set_characterId(value:String):String
@ -209,6 +211,12 @@ class HealthIcon extends FlxSprite
} }
} }
inline function initTargetSize()
{
setGraphicSize(150);
updateHitbox();
}
function updateHealthIcon(health:Float) function updateHealthIcon(health:Float)
{ {
// We want to efficiently handle animation playback // We want to efficiently handle animation playback