Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
LilDrippyMyFnf
GitHub Repository: LilDrippyMyFnf/FNF-BitEnigne
Path: blob/master/MODCHARTS/MovingArrows.lua
2147 views
1
local angleshit = 1;
2
local anglevar = 1;
3
function onCreate()
4
makeLuaSprite('bg','bgfarm',-343.15, -295.45)
5
addLuaSprite('bg',false)
6
7
end
8
9
function onBeatHit()
10
if curBeat < 388 then
11
triggerEvent('Add Camera Zoom', 0.00000000005,0.000000000005)
12
13
if curBeat % 2 == 0 then
14
angleshit = anglevar;
15
else
16
angleshit = -anglevar;
17
end
18
setProperty('camHUD.angle',angleshit*500)
19
setProperty('camGame.angle',angleshit*6)
20
doTweenAngle('turn', 'camHUD', angleshit, stepCrochet*0.002, 'circOut')
21
doTweenX('tuin', 'camHUD', -angleshit*25, crochet*0.001, 'linear')
22
doTweenAngle('tt', 'camGame', angleshit, stepCrochet*0.002, 'circOut')
23
doTweenX('ttrn', 'camGame', -angleshit*22, crochet*0.001, 'linear')
24
else
25
setProperty('camHUD.angle',0)
26
setProperty('camHUD.x',0)
27
setProperty('camHUD.x',0)
28
end
29
end
30
31
function onStepHit()
32
if curBeat < 388 then
33
if curStep % 4 == 0 then
34
doTweenY('rrr', 'camHUD', -12, stepCrochet0.002, 'circOut')
35
doTweenY('rtr', 'camGame.scroll', 12, stepCrochet0.002, 'sineIn')
36
end
37
if curStep % 4 == 2 then
38
doTweenY('rir', 'camHUD', 0, stepCrochet0.002, 'sineIn')
39
doTweenY('ryr', 'camGame.scroll', 0, stepCrochet0.002, 'sineIn')
40
end
41
end
42
end
43
44