Home Wiki Lua-Functions

All Psych Engine lua function can be found Here.

FlxBackDrop

addGridBG

addGridBG(tag:String, cellWidth:Int, cellHeight:Int, width:Int, height:Int:, xVel:Int, yVel:Int)

Creates a Grid BG with a specific Width, Height And Speed and store it as the name input in "tag".

• tag - Grid's name tag to save
• cellWidth - Width of a grid cell
• cellHeight - Height of a grid cell
• width - Grid's width size
• height - Grid's height size
• xVel - Grid's speed on the X-axis
• yVel - Grid's speed on the Y-axis

Demonstration

addGridBG("mytag", 80, 80, 160, 160, 20, 20)



addBackdrop

addBackdrop(tag:String, image:String, xVel:Int, yVel:Int)

Creates a Grid BG with a specific Width, Height And Speed and store it as the name input in "tag".

• tag - Backdrops's name tag to save
• image - Backdrop's Image Path images/
• xVel - Backdrops's speed on the X-axis
• yVel - Backdrop's speed on the Y-axis

Demonstration

addBackdrop("mytag", 'menuBG', 100, 100)



removeBackdrop

removeBackdrop(tag:String)

Removes the existing backdrop with the name specified in "tag."

• tag - Backdrops's name tag to save
• image - Backdrop's Image Path images/
• xVel - Backdrops's speed on the X-axis
• yVel - Backdrop's speed on the Y-axis

Demonstration

addBackdrop("mytag", 'menuBG', 100, 100)


Window Scale / Position

WindowSize

windowSize(x:Int, y:Int, duration:Float, ease:String)

Changes Game Window's Size With specific Width, Height ,Duration and Ease.

• x - Game Window's X Size (Width)
• y - Game Window's Y Size (Height)
• duration - Speed Of How Fast is Tween is gonna be
• ease - Tween Ease

Demonstration

windowSize(1280, 720, 1, 'linear')



windowSizeX

windowSizeX(x:Int, duration:Float, ease:String)

Similar to windowSize but it only changes the width of the window.

• x - Game Window's X Size (Width)
• duration - Speed Of How Fast is Tween is gonna be
• ease - Tween Ease

Demonstration

windowSizeX(1280, 1, "linear")



windowSizeY

windowSizeY(y:Int, duration:Float, ease:String)

Similar to windowSize but it only changes the height of the window.

• y - Game Window's Y Size (Height)
• duration - Speed Of How Fast is Tween is gonna be
• ease - Tween Ease

Demonstration

windowSizeY(720, 1, "linear")



windowPos

windowPos(x:Int, y:Int, duration:Float, ease:String)

Changes Game Window's Position With specific X, Y ,Duration and Ease.

• x - Game Window's X Pos
• y - Game Window's Y Pos
• duration - Speed Of How Fast is Tween is gonna be
• ease - Tween Ease

Demonstration

windowPos(0, 0, 1, 'linear')



windowPosX

windowPosX(x:Int, duration:Float, ease:String)

Similar to windowPos but it only changes the X position of the window

• x - Game Window's X Pos
• duration - Speed Of How Fast is Tween is gonna be
• ease - Tween Ease

Demonstration

windowPosX(0, 1, 'linear')



windowPosY

windowPosY(y:Int, duration:Float, ease:String)

Similar to windowPos but it only changes the X position of the window

• y - Game Window's Y Pos
• duration - Speed Of How Fast is Tween is gonna be
• ease - Tween Ease

Demonstration

windowPosY(0, 1, 'linear')


Dangerous

showMessageBox

showMessageBox(message:String, caption:String, icon:MessageBoxIcon)

Pops out a message box when trigged.

• message - Message what you want to put.
• caption - (I don't know what this does lmao)
• icon - What kind of icon you want. (MSG_ERROR, MSG_QUESTION, MSG_WARNING, MSG_INFORMATION)

Demonstration

showMessageBox("daveberry is cool", "i dunno what this does yet", MSG_INFORMATION)



hideTaskbar

hideTaskbar(hide:Bool)

Hides the taskbar, pretty self-explanatory.

• hide - Hides the taskbar whenever trigged

Demonstration

hideTaskbar(true)


Website Hosted by Netlify.com
Website designed by Daveberry