-
Notifications
You must be signed in to change notification settings - Fork 0
Lua Additions
Difficult_Bit2901 edited this page Mar 9, 2023
·
1 revision
A few shaders have been hard-coded into the game and can be applied to different things.
This will remove all shaders applied to camera.
All functions will add a shader to the specified obj (which can also be a camera) with all following parameters as customization.
addVCRShader(obj:String, glitchFactor:Float, distortion:Bool = true, perspectiveOn:Bool = true, vignetteMoving:Bool = true)
add3DShader(obj:String,xrotation:Float = 0, yrotation:Float = 0, zrotation:Float = 0, depth:Float = 0)
Backdrops are infinitely repeating background images.
addLuaBackdrop(tag:String, image:String, scrollX:Float = 1, scrollY:Float = 1, repeatX:Bool = true, repeatY:Bool = true, spaceX:Int = 0, spaceY:Int = 0)
Creates a backdrop with:
-
tagas it's identifying tag -
imageas it's image -
scrollXdetermining how much it should move with the camera -
scrollYdetermining how much it should move with the camera -
reapeatXdetermining if it should repeat on the x axis -
repeatYdetermining if it should repeat on the y axis -
spaceXas the distance between repeats on the x axis -
spaceYas the distance between repeats on the y axis
Changes the speed the backdrop with the tag tag moves with.
Adds the backdrop with tag tag to the game. If front is true it will in front of the characters, otherwise behind them.
Removes the backdrop with tag tag from the game. If destroy is false it will be re-addable.
Tells you if a backdrop with tag tag exists.
This will be true or false, depending on whether opponent mode is active or not)