Codename LogoCodename Logo

funkin.game.HealthIcon

APIWiki

Constructor

View in GitHub

@:value({ isPlayer : false, char : "bf" })new(char:String = "bf", isPlayer:Bool = false)

Variables

@:value(null)curCharacter:String = null

The currently showing icon

@:value(null)healthSteps:Map<Int, Int> = null

Health steps in this format: Min Percentage => Frame Index

isPlayer:Bool

If the character is for the player

sprTracker:FlxSprite

Used for FreeplayState! If you use it elsewhere, prob gonna annoying

Methods

View in GitHub

setHealthSteps(steps:Array<Array<Int>>):Void

Helper for HScript who can't make maps

Parameters:

steps

Something like this: [[0, 1], [20, 0]]

View in GitHub

@:value({ height : 150, width : 150 })setIcon(char:String, width:Int = 150, height:Int = 150):Void