Skip to content

AlsoGhostglowDev/Ghost-s-Utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ghost's Utilities

ghostutil2 1_noises

GhostUtil (aka. Ghost's Utilities) is a library for Psych Engine with the objective to make programming easier. It provides a unique environment for you to mess around in.

2.0 Contributors:

These are the people who contributed to GhostUtil atleast once

Other Recommended Library:

The Basics

How do I use GhostUtil?

  • Add the "ghostutil" folder to the main Psych Engine folder (where the .exe is).

image

  • Next, drag-n-drop the callbackhandler.lua file to mods/scripts.

image

  • To use GhostUtil, you must import it's modules; you must use the require function.
local string = require 'ghostutil.lua-addons.string'
local math = require 'ghostutil.lua-addons.math'
local game = require 'ghostutil.game'
local outdate = require 'ghostutil.outdate-handler' 
  • Now you can mess around in the GhostUtil environment!
local math = require "ghostutil.lua-addons.math"
local game = require "ghostutil.game"

function onCreate()
    luaDebugMode = true
    game.doTweenScale("tweenScale", "boyfriend", {2, 2.1}, "expoOut")
    game.doTweenPosition({"boyfriendcool", "boyfriendswag"}, "boyfriend", {
        game.getPosition("boyfriend").x - 100,
        math.boundto(game.getPosition("dad").y + 100, -100, 200)
    }, 2, "expoOut")
end

For more advanced information:

CHECK OUT THE WIKI FOR MORE FUNCTIONS.

Older Versions

Psych Engine:

  • below 0.6.3: Some of the functions GhostUtil utilizes don't exist.

  • 0.7.1h: It breaks GhostUtil (mostly because of runHaxeCode);

GhostUtil:

  • below 2.0.0a: When using the Window class, add window.init() before doing anything with the Window class.

  • below 1.0.0: Naming the variable math will break the script.