Skip to content

Custom Stages

DEMOLITIONDON96 edited this page Apr 3, 2023 · 1 revision

Functions

function onCreate() - It's exactly what you expect, just like in Psych's Lua, you create your stage using this function, but in Haxe language

function onUpdate(elapsed:Float, boyfriend:Character, gf:Character, dad:Character) - Allows whatever you have in the game to update every millisecond, perfect example being animated shaders

function charStagePos(boyfriend:Character, gf:Character, dad:Character) - Sets up the position you want the characters in [Example: boyfriend.setPosition(430, -100);]

function onBeat(curBeat:Int, boyfriend:Character, gf:Character, dad:Character) - For stage-specific events you want to occur, and not by song, use this function

function onPostCreate(boyfriend:Character, gf:Character, dad:Character) - After creating a stage, this adds additional assets/visuals

Important Variables

spawnGirlfriend:Bool - Decides whether or not Girlfriend should be present (true by default)

hideBoyfriend:Bool - Whether you want BF hidden or not during a song (false by default)

foreground - this sets your objects to appear in front of the characters, rather than behind, it is called on when you use foreground.add(your object here);

Clone this wiki locally