letranha

Untitled

Jun 3rd, 2022
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.75 KB | None | 0 0
  1. local uber = false
  2.  
  3. function onUpdate()
  4.     if uber then
  5.         function opponentNoteHit()
  6.             triggerEvent('Screen Shake', '0.05, 0.01', '0.05, 0.01');
  7.  
  8.             health = getProperty('health')
  9.             if getProperty('health') > 0.5 then
  10.                 setProperty('health', health- 0.05);
  11.             end
  12.         end
  13.  
  14.         setProperty('healthGain', 0.5)
  15.  
  16.         if curStep % 16 == 0 then
  17.             doTweenAlpha('hello1', 'nt2', 1, 0.2, 'linear');
  18.         end
  19.        
  20.         if curStep % 16 == 4 then
  21.             doTweenAlpha('hello1', 'nt2', 0, 0.2, 'linear');
  22.         end
  23.     else
  24.         doTweenAlpha('hello1', 'nt2', 0, 0.01, 'linear');
  25.  
  26.         setProperty('healthGain', 1)
  27.  
  28.         function opponentNoteHit()
  29.             triggerEvent('Screen Shake', '0, 0.01', '0, 0');
  30.  
  31.             health = getProperty('health')
  32.             if getProperty('health') > 0.5 then
  33.                 setProperty('health', health- 0.02);
  34.             end
  35.         end
  36.     end
  37. end
  38.  
  39. function onStepHit()
  40.  
  41.     if curStep == 122 then
  42.         playSound("charge", 1)
  43.     end
  44.  
  45.     if curStep == 128 then
  46.         uber = true
  47.         cameraFlash("hud", "ff0000", 1, false)
  48.     end
  49.  
  50.     if curStep == 384 then
  51.         uber = false
  52.         cameraFlash("hud", "ff0000", 1, false)
  53.     end
  54.  
  55.     if curStep == 512 then
  56.         uber = true
  57.         cameraFlash("hud", "ff0000", 1, false)
  58.     end
  59.  
  60.     if curStep == 640 then
  61.         uber = false
  62.         cameraFlash("hud", "ff0000", 1, false)
  63.     end
  64.  
  65.     if curStep == 895 then
  66.         uber = true
  67.         cameraFlash("hud", "ff0000", 1, false)
  68.     end
  69.  
  70.     if curStep == 1023 then
  71.         uber = false
  72.         cameraFlash("hud", "ff0000", 1, false)
  73.     end
  74. end
  75.  
  76. function onCreatePost()
  77.     setProperty('timeTxt.visible', false)
  78.     setProperty("scoreTxt.visible", false)
  79.  
  80.     precacheImage("nt2")
  81.     makeLuaSprite('nt2', 'RedVG', 0, 0)
  82.     setObjectCamera('nt2', 'other')
  83.     addLuaSprite('nt2', true)
  84.     defaultCamZoom = getProperty('defaultCamZoom') - 0.01;
  85.     setProperty('nt2.scale.x', 1 / defaultCamZoom);
  86.     setProperty('nt2.scale.y', 1 / defaultCamZoom);
  87.     doTweenAlpha('hello1', 'nt2', 0, 0.01, 'linear');
  88.  
  89.     precacheImage("nt3")
  90.     makeLuaSprite('nt3', 'uber', 0, 0)
  91.     setObjectCamera('nt3', 'other')
  92.     addLuaSprite('n32', true)
  93.     defaultCamZoom = getProperty('defaultCamZoom') - 0.01;
  94.     setProperty('nt3.scale.x', 1 / defaultCamZoom);
  95.     setProperty('nt3.scale.y', 1 / defaultCamZoom);
  96.     doTweenAlpha('hello2', 'nt3', 0, 0.01, 'linear');
  97. end
  98.  
  99. function onCreate()
  100.     precacheSound("charge")
  101. end
  102.  
  103. function opponentNoteHit()
  104.     health = getProperty('health')
  105.     if getProperty('health') > 0.5 then
  106.         setProperty('health', health- 0.01);
  107.     end
  108. end
Advertisement
Add Comment
Please, Sign In to add comment