Ik how to add the wavy background to strident crisis/strident engine here's the script function on create() -- background shit makeLuaSprite('any background', any background', -600 -300); setScrollFactor('any background', false); addWavyShader('any background')
local xx = 80; local yy = 50; local xx2 = 1220; local yy2 = 650; local ofs = 35; local ofs2 = 50; local followchars = true; local del = 0; local del2 = 0; local windowX = 0; local windowY = 0; function onMoveCamera(focus) if focus == 'boyfriend' then -- called when the camera focus on boyfriend elseif focus == 'dad' then setProperty('camFollowPos.y',getProperty('camFollowPos.y') + (math.sin(currentBeat) * 0.8)) end end function windowShake() windowX = getPropertyFromClass('openfl.Lib', 'application.window.x') windowY = getPropertyFromClass('openfl.Lib', 'application.window.y') setPropertyFromClass('openfl.Lib','application.window.x',windowX + math.random(-10,10)) setPropertyFromClass('openfl.Lib','application.window.y',windowY + math.random(-5,5)) end function onUpdate(elapsed) songPos = getSongPosition() local currentBeat2 = (songPos/1000)*(curBpm/60) local currentBeat = (songPos/5000)*(curBpm/60) setProperty('camHUD.angle',0 - 360 * math.cos((currentBeat2*0.25)*math.pi) ) setProperty('camHUD.y',0 - 0 * math.cos((currentBeat2*0.25)*math.pi) ) setProperty('camHUD.x',0 - 0 * math.sin((currentBeat2*0.25)*math.pi) ) songPos = getSongPosition() local currentBeat = (songPos/5000)*(curBpm/60) local currentBeat2 = (songPos/200)*(curBpm/200) if del > 0 then del = del - 1 end if del2 > 0 then del2 = del2 - 1 end if followchars == true then if mustHitSection == false then if getProperty('dad.animation.curAnim.name') == 'singLEFT' then triggerEvent('Camera Follow Pos',xx-ofs2,yy) end if getProperty('dad.animation.curAnim.name') == 'singRIGHT' then triggerEvent('Camera Follow Pos',xx+ofs2,yy) end if getProperty('dad.animation.curAnim.name') == 'singUP' then triggerEvent('Camera Follow Pos',xx,yy-ofs2) end if getProperty('dad.animation.curAnim.name') == 'singDOWN' then triggerEvent('Camera Follow Pos',xx,yy+ofs2) end if getProperty('dad.animation.curAnim.name') == 'singLEFT-alt' then triggerEvent('Camera Follow Pos',xx-ofs2,yy) end if getProperty('dad.animation.curAnim.name') == 'singRIGHT-alt' then triggerEvent('Camera Follow Pos',xx+ofs2,yy) end if getProperty('dad.animation.curAnim.name') == 'singUP-alt' then triggerEvent('Camera Follow Pos',xx,yy-ofs2) end if getProperty('dad.animation.curAnim.name') == 'singDOWN-alt' then triggerEvent('Camera Follow Pos',xx,yy+ofs2) end if getProperty('dad.animation.curAnim.name') == 'idle-alt' then triggerEvent('Camera Follow Pos',xx,yy) end if getProperty('dad.animation.curAnim.name') == 'idle' then triggerEvent('Camera Follow Pos',xx,yy) end else if getProperty('boyfriend.animation.curAnim.name') == 'singLEFT' then triggerEvent('Camera Follow Pos',xx2-ofs,yy2) end if getProperty('boyfriend.animation.curAnim.name') == 'singRIGHT' then triggerEvent('Camera Follow Pos',xx2+ofs,yy2) end if getProperty('boyfriend.animation.curAnim.name') == 'singUP' then triggerEvent('Camera Follow Pos',xx2,yy2-ofs) end if getProperty('boyfriend.animation.curAnim.name') == 'singDOWN' then triggerEvent('Camera Follow Pos',xx2,yy2+ofs) end if getProperty('boyfriend.animation.curAnim.name') == 'idle' then triggerEvent('Camera Follow Pos',xx2,yy2) end end else triggerEvent('Camera Follow Pos','','') end end function opponentNoteHit(id, direction, noteType, isSustainNote) triggerEvent('Screen Shake', '0.1, 0.02', '0.1, 0.007'); setProperty('health', getProperty('health') - 1 * ((getProperty('health')/22))/6) windowShake() -- id: The note member id, you can get whatever variable you want from this note, example: "getPropertyFromGroup('notes', id, 'strumTime')" -- noteData: 0 = Left, 1 = Down, 2 = Up, 3 = Right -- noteType: The note type string/tag -- isSustainNote: If it's a hold note, can be either true or false if noteType~='No Animation' then if direction==0 then cancelTween('revert') setProperty('camHUD.angle', 0) setProperty('camHUD.y', 0) setProperty('camHUD.angle', -5) doTweenAngle('revert', 'camHUD', 0, 0.3, 'CircOut') elseif direction==1 then cancelTween('revert') setProperty('camHUD.angle', 0) setProperty('camHUD.y', 0) setProperty('camHUD.y', 25) doTweenY('revert', 'camHUD', 0, 0.3, 'CircOut') elseif direction==2 then cancelTween('revert') setProperty('camHUD.angle', 0) setProperty('camHUD.y', 0) setProperty('camHUD.y', -25) doTweenY('revert', 'camHUD', 0, 0.3, 'CircOut') elseif direction==3 then cancelTween('revert') setProperty('camHUD.angle', 0) setProperty('camHUD.y', 0) setProperty('camHUD.angle', 5) doTweenAngle('revert', 'camHUD', 0, 0.3, 'CircOut') end end function goodNoteHit(id, direction, noteType, isSustainNote) triggerEvent('Screen Shake', '0.1, 0.007', '0.1, 0.004'); end end