Skip to content
This repository was archived by the owner on Jan 2, 2023. It is now read-only.

Script API 1: All Preset Variables

lunarcleint edited this page Nov 5, 2022 · 10 revisions

All Preset Variables

Script Functions (Added By Default)

  • function new() Called when script is created.
  • function destroy() Called when script is destroyed.
  • function update(elapsed:Float) A function that is called every frame.
  • function trace(_) This function will trace any objects you put in it, trace("hi", "t") //prints hi,t
  • function import(path:String, ?as:Null<String>) Will import as the haxe function would work (EXCULDES ABSTRACTS LIKE FLXCOLOR).

Haxe Classes (Added By Default)

HaxeFlixel and OpenFL: Classes, Variables, and Functions (Added By Default)

Classes

Variables

Functions

FNF's Classes

Game/PlayState: Classes, Variables, and Functions (Added When in PlayState)

Classes

Variables

  • var curStep:Int A shortcut to PlayStates's curStep.
  • var curBeat:Int A shortcut to PlayStates's curBeat.
  • var bpm:Float A shortcut to PlayStates's bpm.
  • var camGame:FlxCamera A shortcut to PlayStates's camGame.
  • var camHUD:FlxCamera A shortcut to PlayStates's camHUD.
  • var camOther:FlxCamera A shortcut to PlayStates's camOther.
  • var camFollow:FlxPoint A shortcut to PlayStates's camFollow.
  • var camFollowPos:FlxObject A shortcut to PlayStates's camFollowPos.
  • var boyfriend:Boyfriend A shortcut to PlayStates's boyfriend.
  • var dad:Character A shortcut to PlayStates's dad.
  • var gf:Character A shortcut to PlayStates's gf.
  • var boyfriendGroup:FlxSpriteGroup A shortcut to PlayStates's boyfriendGroup.
  • var dadGroup:FlxSpriteGroup A shortcut to PlayStates's dadGroup.
  • var gfGroup:FlxSpriteGroup A shortcut to PlayStates's gfGroup.
  • var notes:FlxTypedGroup<Note> A shortcut to PlayStates's notes.
  • var strumLineNotes:FlxTypedGroup<StrumNote> A shortcut to PlayStates's strumLineNotes.
  • var playerStrums:FlxTypedGroup<StrumNote> A shortcut to PlayStates's playerStrums.
  • var opponentStrums:FlxTypedGroup<StrumNote> A shortcut to PlayStates's opponentStrums.
  • var unspawnNotes:Array<Note> A shortcut to PlayStates's unspawnNotes.

Functions

  • function () Called when PlayState's is called.
  • function () Called when PlayState's is called.
  • function () Called when PlayState's is called.
  • function () Called when PlayState's is called.
  • function () Called when PlayState's is called.
  • function () Called when PlayState's is called.
  • function () Called when PlayState's is called.
  • function () Called when PlayState's is called.
  • function () Called when PlayState's is called.
  • function () Called when PlayState's is called.
  • function () Called when PlayState's is called.
  • function () Called when PlayState's is called.
  • function () Called when PlayState's is called.
  • function () Called when PlayState's is called.
  • function () Called when PlayState's is called.
  • function () Called when PlayState's is called.
  • function () Called when PlayState's is called.
  • function () Called when PlayState's is called.
  • function () Called when PlayState's is called.
  • function () Called when PlayState's is called.

Clone this wiki locally