Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local uber = false
- function onUpdate()
- if uber then
- function opponentNoteHit()
- triggerEvent('Screen Shake', '0.05, 0.01', '0.05, 0.01');
- health = getProperty('health')
- if getProperty('health') > 0.5 then
- setProperty('health', health- 0.05);
- end
- end
- setProperty('healthGain', 0.5)
- if curStep % 16 == 0 then
- doTweenAlpha('hello1', 'nt2', 1, 0.2, 'linear');
- end
- if curStep % 16 == 4 then
- doTweenAlpha('hello1', 'nt2', 0, 0.2, 'linear');
- end
- else
- doTweenAlpha('hello1', 'nt2', 0, 0.01, 'linear');
- setProperty('healthGain', 1)
- function opponentNoteHit()
- triggerEvent('Screen Shake', '0, 0.01', '0, 0');
- health = getProperty('health')
- if getProperty('health') > 0.5 then
- setProperty('health', health- 0.02);
- end
- end
- end
- end
- function onStepHit()
- if curStep == 122 then
- playSound("charge", 1)
- end
- if curStep == 128 then
- uber = true
- cameraFlash("hud", "ff0000", 1, false)
- end
- if curStep == 384 then
- uber = false
- cameraFlash("hud", "ff0000", 1, false)
- end
- if curStep == 512 then
- uber = true
- cameraFlash("hud", "ff0000", 1, false)
- end
- if curStep == 640 then
- uber = false
- cameraFlash("hud", "ff0000", 1, false)
- end
- if curStep == 895 then
- uber = true
- cameraFlash("hud", "ff0000", 1, false)
- end
- if curStep == 1023 then
- uber = false
- cameraFlash("hud", "ff0000", 1, false)
- end
- end
- function onCreatePost()
- setProperty('timeTxt.visible', false)
- setProperty("scoreTxt.visible", false)
- precacheImage("nt2")
- makeLuaSprite('nt2', 'RedVG', 0, 0)
- setObjectCamera('nt2', 'other')
- addLuaSprite('nt2', true)
- defaultCamZoom = getProperty('defaultCamZoom') - 0.01;
- setProperty('nt2.scale.x', 1 / defaultCamZoom);
- setProperty('nt2.scale.y', 1 / defaultCamZoom);
- doTweenAlpha('hello1', 'nt2', 0, 0.01, 'linear');
- precacheImage("nt3")
- makeLuaSprite('nt3', 'uber', 0, 0)
- setObjectCamera('nt3', 'other')
- addLuaSprite('n32', true)
- defaultCamZoom = getProperty('defaultCamZoom') - 0.01;
- setProperty('nt3.scale.x', 1 / defaultCamZoom);
- setProperty('nt3.scale.y', 1 / defaultCamZoom);
- doTweenAlpha('hello2', 'nt3', 0, 0.01, 'linear');
- end
- function onCreate()
- precacheSound("charge")
- end
- function opponentNoteHit()
- health = getProperty('health')
- if getProperty('health') > 0.5 then
- setProperty('health', health- 0.01);
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment