Static methods

static__loadSong(name:String, difficulty:String):Void

staticinlineaddZeros(str:String, num:Int):String

@:value({ axes : XY })staticcameraCenter(obj:FlxObject, cam:FlxCamera, axes:FlxAxes = XY):Void

staticclear<T>(array:Array<T>):Array<T>

Clears the content of an array

staticcoolTextFile(path:String):Array<String>

staticinlinecopyColorTransform(color1:ColorTransform, color2:ColorTransform):Void

staticinlinefpsLerp(v1:Float, v2:Float, ratio:Float):Float

staticinlinegetAtt(xml:Access, name:String):String

staticgetColorFromDynamic(c:Dynamic):Null<FlxColor>

Tries to get a color from a Dynamic variable.

Parameters:

c

Dynamic color.

Returns:

The result color, or null if invalid.

staticinlinegetDefault<T>(v:Null<T>, defaultValue:T):Null<T>

staticinlinegetFPSRatio(ratio:Float):Float

Modifies a lerp ratio based on current FPS to keep a stable speed on higher framerate.

Parameters:

ratio

Ratio

Returns:

FPS-Modified Ratio

staticgetMacroAbstractClass(className:String):Class<Dynamic>

Gets the macro class created by hscript-improved for an abstract / enum

staticgetSizeString(size:Float):String

staticinlineisNaN(v:Dynamic):Bool

staticinlinekeyToString(key:Null<FlxKey>):String

staticinlinelast<T>(array:Array<T>):T

@:value({ fpsSensitive : false })staticinlinelerpColor(color1:FlxColor, color2:FlxColor, ratio:Float, fpsSensitive:Bool = false):FlxColor

Lerps from color1 into color2 (Shortcut to FlxColor.interpolate)

Parameters:

color1

Color 1

color2

Color 2

ratio

Ratio

fpsSensitive

Whenever the ratio should be fps sensitive (adapted when game is running at 120 instead of 60)

staticloadAnimatedGraphic(spr:FlxSprite, path:String):FlxSprite

@:value({ SkipAtlasCheck : false, Key : null, Unique : false })staticloadFrames(path:String, Unique:Bool = false, ?Key:String, SkipAtlasCheck:Bool = false):FlxFramesCollection

@:value({ coopMode : false, opponentMode : false, difficulty : "normal" })staticloadSong(name:String, difficulty:String = "normal", opponentMode:Bool = false, coopMode:Bool = false):Void

@:value({ difficulty : "normal" })staticloadWeek(weekData:WeekData, difficulty:String = "normal"):Void

@:value({ min : 0 })staticinlinenumberArray(max:Int, min:Int = 0):Array<Int>

staticparseJson(assetPath:String):Unknown

staticinlineparseJsonString(str:String):Unknown

@:value({ volume : 1, menuSFX : SCROLL })staticplayMenuSFX(menuSFX:CoolSfx = SCROLL, volume:Float = 1):Void

Plays a specified Menu SFX.

Parameters:

menuSFX

Menu SFX to play

volume

At which volume it should play

@:value({ fadeIn : false })staticplayMenuSong(fadeIn:Bool = false):Void

@:value({ Looped : true, Volume : 1, DefaultBPM : 102 })staticplayMusic(path:String, DefaultBPM:Int = 102, Volume:Int = 1, Looped:Bool = true, ?Group:FlxSoundGroup):Void

staticpreloadCharacter(name:String, ?spriteName:String):Void

staticpushGroup<T>(array:Array<T>, args:Rest<T>):Array<T>

staticresetSprite(spr:FlxSprite, x:Float, y:Float):Void

staticsetFieldDefault<T>(v:Dynamic, name:String, defaultValue:T):T

staticsetSpriteSize(sprite:FlxSprite, width:Float, height:Float):Void

@:value({ maxScale : 0, fill : true })staticsetUnstretchedGraphicSize(sprite:FlxSprite, width:Int, height:Int, fill:Bool = true, maxScale:Float = 0):Void

staticswitchAnimFrames(anim1:FlxAnimation, anim2:FlxAnimation):Void