View source
class Character
package funkin.game
extends FunkinSprite
implements IOffsetCompatible, IBeatReceiver
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
Constructor
View in GitHub
new(x:Float, y:Float, character:String = "bf", isPlayer:Bool = false, switchAnims:Bool = true, disableScripts:Bool = false)
Variables
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.
Methods
View in GitHub