Codename LogoCodename Logo

funkin.game.Character

APIWiki

Static variables

View in GitHub

staticcharacterAnimProperties:Array<String> = ["name", "anim", "x", "y", "fps", "loop", "indices"]

View in GitHub

staticcharacterProperties:Array<String> = ["x", "y", "sprite", "scale", "antialiasing", "flipX", "camx", "camy", "isPlayer", "icon", "color", "gameOverChar", "holdTime"]

Static methods

View in GitHub

staticgetIconFromCharName(?character:String):String

View in GitHub

staticgetList(mods:Bool = false):Array<String>

View in GitHub

staticgetXMLFromCharName(character:OneOfTwo<String, Character>):Access

Constructor

View in GitHub

new(x:Float, y:Float, character:String = "bf", isPlayer:Bool = false, switchAnims:Bool = true, disableScripts:Bool = false)

Variables

cameraOffset:FlxPoint = FlxPoint.get(0, 0)

curCharacter:String = "bf"

danceOnBeat:Bool = true

Whenever the character should dance on beat or not. Set to false for gf, since the dance animation is automatically handled by PlayState.

gameOverCharacter:String = Character.FALLBACK_DEAD_CHARACTER

globalOffset:FlxPoint = FlxPoint.get(0, 0)

holdTime:Float = 4

icon:String = null

iconColor:Null<FlxColor> = null

idleSuffix:String = ""

isPlayer:Bool = false

lastHit:Float = Math.NEGATIVE_INFINITY

playerOffsets:Bool = false

singAnims:Array<String> = ["singLEFT", "singDOWN", "singUP", "singRIGHT"]

sprite:String = "bf"

stunned:Bool = false

xml:Access

Methods

View in GitHub

applyXML(xml:Access):Void

View in GitHub

inlinebuildCharacter(xml:Access):Void

View in GitHub

inlinebuildXML(?animsOrder:Array<String>):Xml

View in GitHub

fixChar(switchAnims:Bool = false, autoInterval:Bool = false):Void

View in GitHub

inlinegetIcon():String

View in GitHub

playSingAnim(direction:Int, suffix:String = "", Context:PlayAnimContext = SING, ?Force:Bool, Reversed:Bool = false, Frame:Int = 0):Void

Inherited Variables

Defined by FunkinSprite

animDatas:Map<String, AnimData> = []

animOffsets:Map<String, FlxPoint> = new Map<String,FlxPoint>()

beatAnims:Array<BeatAnim> = []

beatInterval:Int = 2

ODD interval -> asynced; EVEN interval -> synced

beatOffset:Int = 0

debugMode:Bool = false

extra:Map<String, Dynamic> = []

initialZoom:Float = 1

name:String

skipNegativeBeats:Bool = false

zoomFactor:Float = 1

Inherited Methods

Defined by FunkinSprite

View in GitHub

addOffset(name:String, x:Float = 0, y:Float = 0):Void

View in GitHub

getAnim(name:String):OneOfTwo<FlxAnimation, FlxSymbolAnimation>

View in GitHub

inlinegetAnimOffset(name:String):Null<FlxPoint>

View in GitHub

inlinegetNameList():Array<String>

View in GitHub

inlinehasAnimation(AnimName:String):Bool

View in GitHub

loadSprite(path:String, Unique:Bool = false, ?Key:String):Void

View in GitHub

measureHit(curMeasure:Int):Void

View in GitHub

onPropertySet(property:String, value:Dynamic):Void

View in GitHub

inlineremoveAnimation(name:String):Void

View in GitHub

switchOffset(anim1:String, anim2:String):Void