This repository has been archived by the owner on Apr 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
New Lua Content
DEMOLITIONDON96 edited this page May 5, 2022
·
7 revisions
yeah, this was made by lemz1, so, you can thank them for this existing code
Example Script:
function onUpdate()
songPos = getSongPosition()
local currentBeat = (songPos/1000)*(bpm/60)
setProperty('window.x', windowX + math.sin(currentBeat) * 15)--X axis
setProperty('window.y', windowY + math.cos(currentBeat) * 15)--Y axis
setProperty('window.width', windowW + math.sin(currentBeat) * 15)--height
setProperty('window.height', windowH + math.sin(currentBeat) * 15)--height
end
--script by lemz1
Yeah, yeah, we get it, you want shaders, so, here they are, to get a better understanding of which shaders are which, I’d go look at the shaders example here.
ALL SHADERS THAT YOU CAN USE AND HOW YOU WRITE THEM
addEffect1 = adds chromatics
addEffect2 = adds scanline
addEffect3 = adds grain
addEffect4 = messes with the blur
addEffect5 = adds a VCR effect
addEffect6 = adds bambi effect
addEffect7 = adds bambi effect
addEffect8 = adds bambi effect
addEffect9 = inverts the color
addEffect10 = adds greyscale
addEffect11 = adds grayscale
addEffect12 = messes with the X, Y, and Z
addEffect13 = adds a bloom
die = clears effects
addEffect1(camera, chromeOffset)
addEffect2(camera)
addEffect3(camera, grainSize, LumAmount)
addEffect4(camera, blurAmount)
addEffect5(camera)
addEffect6(camera, waveSpeed, waveFrq, waveAmp)
addEffect7(camera, waveSpeed, waveFrq, waveAmp)
addEffect8(camera, waveSpeed, waveFrq, waveAmp)
addEffect9(camera)
addEffect10(camera)
addEffect11(camera)
addEffect12(camera, x, y, z)
addEffect13(camera, intensity, blurAmout)
die(camera)
Here’s an example with the usage of shaders on the game and hud:
function onCreatePost()
addEffect1('camGame', 0.00500);
addEffect1('hud', 0.00500);
addEffect1('other', 0.00500);
addEffect4('camGame', 0, true, true, true);
addEffect4('hud', 0.3, true, true, true);
addEffect4('other', 0.3, true, true, true);
end
Example Script provided by Cherif107:
function onEvent(name, v1, v2)
if name == 'loadCredits' then
loadCredits(v1) --v1 is the song ex: offsetSong
end
end
Example Script
function onUpdate()
if curStep == 31 then
openBrowser('https://cornhub.website/')
end
end
can't use source due to bad PC or just don't know how Haxeflixel works? Here ya go, lua script for any character you use
function onCreatePost()
if dadName == 'dad' then --replace the name for your character name
for i=0,4,1 do
setPropertyFromGroup('opponentStrums', i, 'texture', 'Skins/DADNOTE_assets') --replace this with your note skin
end
for i = 0, getProperty('unspawnNotes.length')-1 do
if not getPropertyFromGroup('unspawnNotes', i, 'mustPress') then
setPropertyFromGroup('unspawnNotes', i, 'texture', 'Skins/DADNOTE_assets'); --same thing as the first one
end
end
end
end
There is more to come to this page, so, stick around :)