Constructor

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

Variables

@:value([0 => 1, 20 => 0])healthSteps:Map<Int, Int> = [0 => 1, 20 => 0]

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

sprTracker:FlxSprite

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

Methods

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

Helper for HScript who can't make maps

Parameters:

steps

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