This commit is contained in:
Frakits
2024-08-03 15:42:43 +03:00
parent 8b0d3c7720
commit 087959018b
+1 -1
View File
@@ -50,12 +50,12 @@ class HealthIcon extends FlxSprite
public function new(char:String = 'bf', isPlayer:Bool = false)
{
super();
health = 0.5;
this.isPlayer = isPlayer;
setIcon(char);
scrollFactor.set();
super();
}
public function setIcon(char:String, width:Int = 150, height:Int = 150) {