Path: blob/master/Source/ChartEvents/bouncyarrows.lua
2151 views
--Created by RamenDominoes1--Credit is appreciated, but not necessary <3234function onCreatePost()56--NO TOUCHY THESE!!!7------------------------------------------------------------------8BFLeft = getPropertyFromGroup('playerStrums', '0', 'x')9BFDown = getPropertyFromGroup('playerStrums', '1', 'y')10BFUp = getPropertyFromGroup('playerStrums', '2', 'y')11BFRight = getPropertyFromGroup('playerStrums', '3', 'x')1213OPLeft = getPropertyFromGroup('opponentStrums', '0', 'x')14OPDown = getPropertyFromGroup('opponentStrums', '1', 'y')15OPUp = getPropertyFromGroup('opponentStrums', '2', 'y')16OPRight = getPropertyFromGroup('opponentStrums', '3', 'x')17------------------------------------------------------------------1819--touchy this hehe20Movement = 20 --Wouldn't recommend going above 40(even that's a lot), but it would be kinda funny2122------------------------------------------------------------------2324end252627function goodNoteHit(id, direction, noteType, isSustainNote)2829if direction == 0 then30noteTweenX('leftBF', 4, BFLeft - Movement, 0.2, 'ElasticOut')3132elseif direction == 1 then33noteTweenY('downBF', 5, BFDown + Movement, 0.2, 'ElasticOut')3435elseif direction == 2 then36noteTweenY('upBF', 6, BFUp - Movement, 0.2, 'ElasticOut')3738elseif direction == 3 then39noteTweenX('rightBF', 7, BFRight + Movement, 0.2, 'ElasticOut')404142end4344runTimer('ReturnBF', 0.08, 1)4546end4748function opponentNoteHit(id, direction, noteType, isSustainNote)4950if direction == 0 then51noteTweenX('leftOP', 0, OPLeft - Movement, 0.2, 'ElasticOut')5253elseif direction == 1 then54noteTweenY('downOP', 1, OPDown + Movement, 0.2, 'ElasticOut')5556elseif direction == 2 then57noteTweenY('upOP', 2, OPUp - Movement, 0.2, 'ElasticOut')5859elseif direction == 3 then60noteTweenX('rightOP', 3, OPRight + Movement, 0.2, 'ElasticOut')616263end6465runTimer('ReturnOp', 0.08, 1)6667end6869function onTimerCompleted(tag, loops, loopsLeft)7071if tag == 'ReturnBF' then7273noteTweenX('leftBF', 4, BFLeft, 0.05, 'linear')74noteTweenY('downBF', 5, BFDown, 0.05, 'linear')75noteTweenY('upBF', 6, BFUp, 0.05, 'linear')76noteTweenX('rightBF', 7, BFRight, 0.05, 'linear')77end7879if tag == 'ReturnOp' then8081noteTweenX('leftOP', 0, OPLeft, 0.05, 'linear')82noteTweenY('downOP', 1, OPDown, 0.05, 'linear')83noteTweenY('upOP', 2, OPUp, 0.05, 'linear')84noteTweenX('rightOP', 3, OPRight, 0.05, 'linear')85end86end8788-- all from https://gamebanana.com/tools/10237899091