Constructor
Variables
autoplayElapsed:Float = 0
Time elapsed since last autoplay. If this time exceeds timeUntilAutoplay
, the currently selected song will play.
coopLabels:Array<String> = ["[TAB] Solo", "[TAB] Opponent Mode", "[TAB] Co-Op Mode", "[TAB] Co-Op Mode (Switched)"]
Array containing all labels for Co-Op / Opponent modes.
interpColor:FlxInterpolateColor
FlxInterpolateColor object for smooth transition between Freeplay colors.
Methods
changeCoopMode(change:Int = 0, force:Bool = false):Void
Change the current coop mode context.
Parameters:
change | How much to change |
---|---|
force | Force the change, even if |
changeDiff(change:Int = 0, force:Bool = false):Void
Changes the current difficulty
Parameters:
change | How much to change. |
---|---|
force | Force the change if |
changeSelection(change:Int = 0, force:Bool = false):Void
Change the current selection.
Parameters:
change | How much to change |
---|---|
force | Force the change, even if |
Inherited Variables
Defined by MusicBeatState
graphicCache:GraphicCacheSprite = new GraphicCacheSprite()
Dummy sprite used to cache graphics to GPU.
stateScripts:ScriptPack
Current injected script attached to the state. To add one, create a file at path "data/states/stateName" (ex: data/states/FreeplayState)
Inherited Methods
Defined by MusicBeatState
lerp(v1:Float, v2:Float, ratio:Float, fpsSensitive:Bool = false):Float
Shortcut to FlxMath.lerp
or CoolUtil.lerp
, depending on fpsSensitive
Parameters:
v1 | Value 1 |
---|---|
v2 | Value 2 |
ratio | Ratio |
fpsSensitive | Whenever the ratio should not be adjusted to run at the same speed independent of framerate. |