View source
class Character
package funkin.game
extends FunkinSprite
implements IPrePostDraw, IOffsetCompatible, IBeatReceiver
extended by CharacterGhost
Static variables
View on GitHub
staticcharacterAnimProperties:Array<String> = ["name", "anim", "x", "y", "fps", "loop", "indices"]
View on GitHub
staticcharacterProperties:Array<String> = ["x", "y", "sprite", "scale", "antialiasing", "flipX", "camx", "camy", "isPlayer", "icon", "color", "gameOverChar", "holdTime"]
Static methods
View on GitHub
staticgetList(mods:Bool = false, includeFolders:Bool = false, folder:String = "data/characters/"):Array<String>
Constructor
View on GitHub
new(x:Float, y:Float, ?character:String, isPlayer:Bool = false, switchAnims:Bool = true, disableScripts:Bool = false)
Variables
Methods
View on GitHub
playSingAnim(direction:Int, suffix:String = "", Context:PlayAnimContext = SING, ?Force:Bool, Reversed:Bool = false, Frame:Int = 0):Void
Like playSingAnimUnsafe
but checks if the character has the animation with the suffix part, otherwise it plays the animation without the suffix part.
View on GitHub
playSingAnimUnsafe(direction:Int, suffix:String = "", Context:PlayAnimContext = SING, Force:Bool = true, Reversed:Bool = false, Frame:Int = 0):Void
Inherited Variables
Defined by FunkinSprite
Inherited Methods
Defined by FunkinSprite
View on GitHub