Skip to content

Functions

VideoBot edited this page Dec 8, 2024 · 4 revisions

yes


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

Example :

  • addGridBG("resultbggrid", 80, 80, 160, 160, 20, 20)

Showcase :

grid


addBackdrop

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

Creates a Backdrop with a Image 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

Example :

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

Showcase :

backdrop


removeBackdrop

removeBackdrop(tag:String)

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

  • tag - The name tag of the backdrop to remove

windowSize

windowSize(sizeX:Float, sizeY:Float, duration:Float, ease:String)

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

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

Example :

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

windowSizeX

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

Example :

  • windowSizeX(1280, 1, "linear")

windowSizeY

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

Example :

  • windowSizeY(720, 1, "linear")


windowPos

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

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

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

Example :

  • windowPos(1280, 720, 1, 'linear')

windowPosX

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

Example :

  • windowPosX(1280, 1, "linear")

windowPosY

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

Example :

  • windowPosY(720, 1, "linear")


resetWindow

resetWindow(size:Bool, pos:Bool, duration:Float, ease:String)

Changes Game Window's Position And Size To Default

  • size - Change Size Of Window To Default (True,False)
  • pos - Change Pos Of Window To Default (True,False)
  • duration - Speed Of How Fast is Tween is gonna be
  • ease - Tween Ease

Example :

  • resetWindow(true, false, 1, 'linear') (only sets size to default)