So i have a winning icon script as well as a cinematics event in my mod, but the cinematics don't hide winning icons, anyone knows the solution? Images shown below
Cinematic event:
start = 0
finish = 0
function onCreate()
--THE TOP BAR
makeLuaSprite('UpperBar', 'empty', 0, -120)
makeGraphic('UpperBar', 1280, 120, '000000')
setObjectCamera('UpperBar', 'hud')
addLuaSprite('UpperBar', false)
--THE BOTTOM BAR
makeLuaSprite('LowerBar', 'empty', 0, 720)
makeGraphic('LowerBar', 1280, 120, '000000')
setObjectCamera('LowerBar', 'hud')
addLuaSprite('LowerBar', false)
end
function onUpdate()
if start == 1 then
doTweenY('Cinematics1', 'UpperBar', 0, 0.5, 'Linear')
doTweenY('Cinematics2', 'LowerBar', 600, 0.5, 'Linear')
noteTweenY('NOTEMOVE1', 0, 120, 0.5, 'Linear')
noteTweenY('NOTEMOVE2', 1, 120, 0.5, 'Linear')
noteTweenY('NOTEMOVE3', 2, 120, 0.5, 'Linear')
noteTweenY('NOTEMOVE4', 3, 120, 0.5, 'Linear')
noteTweenY('NOTEMOVE5', 4, 120, 0.5, 'Linear')
noteTweenY('NOTEMOVE6', 5, 120, 0.5, 'Linear')
noteTweenY('NOTEMOVE7', 6, 120, 0.5, 'Linear')
noteTweenY('NOTEMOVE8', 7, 120, 0.5, 'Linear')
doTweenAlpha('AlphaTween1', 'healthBarBG', 0, 0.25)
doTweenAlpha('AlphaTween2', 'healthBar', 0, 0.25)
doTweenAlpha('AlphaTween3', 'scoreTxt', 0, 0.25)
doTweenAlpha('AlphaTween4', 'iconP1', 0, 0.25)
doTweenAlpha('AlphaTween5', 'iconP2', 0, 0.25)
doTweenAlpha('AlphaTween7', 'ratingIcon', 0, 0.25)
doTweenAlpha('AlphaTween8', 'missesIcon', 0, 0.25)
doTweenAlpha('AlphaTween9', 'scoreIcon', 0, 0.25)
doTweenAlpha('AlphaTween10', 'timeBar', 0, 0.25)
doTweenAlpha('AlphaTween11', 'timeBarBG', 0, 0.25)
doTweenAlpha('AlphaTween12', 'timeTxt', 0, 0.25)
doTweenAlpha('AlphaTween13', 'rating', 0, 0.25)
doTweenAlpha('AlphaTween14', 'misses', 0, 0.25)
doTweenAlpha('AlphaTween15', 'score', 0, 0.25)
doTweenAlpha('AlphaTween16', 'songIcon', 0, 0.25)
doTweenAlpha('AlphaTween17', 'song', 0, 0.25)
end
if downscroll and start == 1 then
doTweenY('Cinematics1', 'UpperBar', 0, 0.5, 'Linear')
doTweenY('Cinematics2', 'LowerBar', 600, 0.5, 'Linear')
noteTweenY('NOTEMOVE1', 0, 480, 0.5, 'Linear')
noteTweenY('NOTEMOVE2', 1, 480, 0.5, 'Linear')
noteTweenY('NOTEMOVE3', 2, 480, 0.5, 'Linear')
noteTweenY('NOTEMOVE4', 3, 480, 0.5, 'Linear')
noteTweenY('NOTEMOVE5', 4, 480, 0.5, 'Linear')
noteTweenY('NOTEMOVE6', 5, 480, 0.5, 'Linear')
noteTweenY('NOTEMOVE7', 6, 480, 0.5, 'Linear')
noteTweenY('NOTEMOVE8', 7, 480, 0.5, 'Linear')
doTweenAlpha('AlphaTween1', 'healthBarBG', 0, 0.25)
doTweenAlpha('AlphaTween2', 'healthBar', 0, 0.25)
doTweenAlpha('AlphaTween3', 'scoreTxt', 0, 0.25)
doTweenAlpha('AlphaTween4', 'iconP1', 0, 0.25)
doTweenAlpha('AlphaTween5', 'iconP2', 0, 0.25)
doTweenAlpha('AlphaTween7', 'ratingIcon', 0, 0.25)
doTweenAlpha('AlphaTween8', 'missesIcon', 0, 0.25)
doTweenAlpha('AlphaTween9', 'scoreIcon', 0, 0.25)
doTweenAlpha('AlphaTween10', 'timeBar', 0, 0.25)
doTweenAlpha('AlphaTween11', 'timeBarBG', 0, 0.25)
doTweenAlpha('AlphaTween12', 'timeTxt', 0, 0.25)
doTweenAlpha('AlphaTween13', 'rating', 0, 0.25)
doTweenAlpha('AlphaTween14', 'misses', 0, 0.25)
doTweenAlpha('AlphaTween15', 'score', 0, 0.25)
doTweenAlpha('AlphaTween16', 'songIcon', 0, 0.25)
doTweenAlpha('AlphaTween17', 'song', 0, 0.25)
end
if finish == 2 then
doTweenY('Cinematics1', 'UpperBar', -120, 0.5, 'Linear')
doTweenY('Cinematics2', 'LowerBar', 720, 0.5, 'Linear')
noteTweenY('NOTEMOVE1', 0, 50, 0.5, 'Linear')
noteTweenY('NOTEMOVE2', 1, 50, 0.5, 'Linear')
noteTweenY('NOTEMOVE3', 2, 50, 0.5, 'Linear')
noteTweenY('NOTEMOVE4', 3, 50, 0.5, 'Linear')
noteTweenY('NOTEMOVE5', 4, 50, 0.5, 'Linear')
noteTweenY('NOTEMOVE6', 5, 50, 0.5, 'Linear')
noteTweenY('NOTEMOVE7', 6, 50, 0.5, 'Linear')
noteTweenY('NOTEMOVE8', 7, 50, 0.5, 'Linear')
doTweenAlpha('AlphaTween1', 'healthBarBG', 1, 0.25)
doTweenAlpha('AlphaTween2', 'healthBar', 1, 0.25)
doTweenAlpha('AlphaTween3', 'scoreTxt', 1, 0.25)
doTweenAlpha('AlphaTween4', 'iconP1', 1, 0.25)
doTweenAlpha('AlphaTween5', 'iconP2', 1, 0.25)
doTweenAlpha('AlphaTween8', 'ratingIcon', 1, 0.25)
doTweenAlpha('AlphaTween9', 'missesIcon', 1, 0.25)
doTweenAlpha('AlphaTween10', 'scoreIcon', 1, 0.25)
doTweenAlpha('AlphaTween11', 'timeBar', 1, 0.25)
doTweenAlpha('AlphaTween12', 'timeBarBG', 1, 0.25)
doTweenAlpha('AlphaTween13', 'timeTxt', 1, 0.25)
doTweenAlpha('AlphaTween14', 'rating', 1, 0.25)
doTweenAlpha('AlphaTween15', 'misses', 1, 0.25)
doTweenAlpha('AlphaTween16', 'score', 1, 0.25)
doTweenAlpha('AlphaTween17', 'songIcon', 1, 0.25)
doTweenAlpha('AlphaTween18', 'song', 1, 0.25)
end
if downscroll and finish == 2 then
doTweenY('Cinematics1', 'UpperBar', -120, 0.5, 'Linear')
doTweenY('Cinematics2', 'LowerBar', 720, 0.5, 'Linear')
noteTweenY('NOTEMOVE1', 0, 570, 0.5, 'Linear')
noteTweenY('NOTEMOVE2', 1, 570, 0.5, 'Linear')
noteTweenY('NOTEMOVE3', 2, 570, 0.5, 'Linear')
noteTweenY('NOTEMOVE4', 3, 570, 0.5, 'Linear')
noteTweenY('NOTEMOVE5', 4, 570, 0.5, 'Linear')
noteTweenY('NOTEMOVE6', 5, 570, 0.5, 'Linear')
noteTweenY('NOTEMOVE7', 6, 570, 0.5, 'Linear')
noteTweenY('NOTEMOVE8', 7, 570, 0.5, 'Linear')
doTweenAlpha('AlphaTween1', 'healthBarBG', 1, 0.25)
doTweenAlpha('AlphaTween2', 'healthBar', 1, 0.25)
doTweenAlpha('AlphaTween3', 'scoreTxt', 1, 0.25)
doTweenAlpha('AlphaTween4', 'iconP1', 1, 0.25)
doTweenAlpha('AlphaTween5', 'iconP2', 1, 0.25)
doTweenAlpha('AlphaTween8', 'ratingIcon', 1, 0.25)
doTweenAlpha('AlphaTween9', 'missesIcon', 1, 0.25)
doTweenAlpha('AlphaTween10', 'scoreIcon', 1, 0.25)
doTweenAlpha('AlphaTween11', 'timeBar', 1, 0.25)
doTweenAlpha('AlphaTween12', 'timeBarBG', 1, 0.25)
doTweenAlpha('AlphaTween13', 'timeTxt', 1, 0.25)
doTweenAlpha('AlphaTween14', 'rating', 1, 0.25)
doTweenAlpha('AlphaTween15', 'misses', 1, 0.25)
doTweenAlpha('AlphaTween16', 'score', 1, 0.25)
doTweenAlpha('AlphaTween17', 'songIcon', 1, 0.25)
doTweenAlpha('AlphaTween18', 'song', 1, 0.25)
end
end
function onEvent(name,value1,value2)
if name == 'Cinematics' then
start = tonumber(value1)
finish = tonumber(value2)
end
end
Winning icon:
function onCreate()
makeLuaSprite('winningIcon', 'icons/win-'..getProperty('boyfriend.healthicon'), getProperty('iconP1.x'), getProperty('iconP1.y'))
setObjectCamera('winningIcon', 'hud')
addLuaSprite('winningIcon', true)
setObjectOrder('winningIcon', getObjectOrder('iconP1') + 1)
setProperty('winningIcon.flipX', true)
setProperty('winningIcon.visible', false)
bf = getProperty('boyfriend.healthicon')
makeLuaSprite('winningIconDad', 'icons/win-'..getProperty('boyfriend.healthicon'), getProperty('iconP2.x'), getProperty('iconP2.y'))
setObjectCamera('winningIconDad', 'hud')
addLuaSprite('winningIconDad', true)
setObjectOrder('winningIconDad', getObjectOrder('iconP2') + 1)
setProperty('winningIconDad.flipX', false)
setProperty('winningIconDad.visible', false)
dad = getProperty('boyfriend.healthicon')
end
function onUpdate(elapsed)
bf = getProperty('iconP1.animation.curAnim.name')
--debugPrint(getProperty('iconP1.animation.curAnim.name')) --debug
--WHITELIST add more characters if you wish
--if bf == 'bf' or bf =='bf' or bf =='bf' or bf =='bf' --WHITELIST - comment '--' to disable, uncomment to enable
--BLACKLIST add more characters if you wish
--if not bf =='bf' or bf =='bf' or bf =='bf' or bf =='bf' --BLACKLIST - comment '--' to disable, uncomment to enable
--then --uncomment if using WHITELIST or BLACKLIST
makeLuaSprite('winningIcon', 'icons/win-'..getProperty('iconP1.animation.curAnim.name'), getProperty('iconP1.x'), getProperty('iconP1.y'))
setObjectCamera('winningIcon', 'hud')
addLuaSprite('winningIcon', true)
setObjectOrder('winningIcon', getObjectOrder('iconP1') + 1)
setProperty('winningIcon.flipX', true)
setProperty('winningIcon.visible', false)
setProperty('winningIcon.x', getProperty('iconP1.x'))
setProperty('winningIcon.angle', getProperty('iconP1.angle'))
setProperty('winningIcon.y', getProperty('iconP1.y'))
setProperty('winningIcon.scale.x', getProperty('iconP1.scale.x'))
setProperty('winningIcon.scale.y', getProperty('iconP1.scale.y'))
if getProperty('health') >= 1.625 then
setProperty('iconP1.visible', false)
setProperty('winningIcon.visible', true)
else
setProperty('iconP1.visible', true)
setProperty('winningIcon.visible', false)
end
--end --uncomment if using WHITELIST or BLACKLIST
dad = getProperty('dad.healthicon')
--WHITELIST add more characters if you wish
--if dad == 'dad' or dad =='dad' or dad =='dad' or dad =='dad' --WHITELIST - comment '--' to disable, uncomment to enable
--BLACKLIST add more characters if you wish
--if not dad =='dad' or dad =='dad' or dad =='dad' or dad =='dad' --BLACKLIST - comment '--' to disable, uncomment to enable
--then --uncomment if using WHITELIST or BLACKLIST
makeLuaSprite('winningIconDad', 'icons/win-'..getProperty('iconP2.animation.curAnim.name'), getProperty('iconP2.x'), getProperty('iconP2.y'))
setObjectCamera('winningIconDad', 'hud')
addLuaSprite('winningIconDad', true)
setObjectOrder('winningIconDad', getObjectOrder('iconP2') + 1)
setProperty('winningIconDad.flipX', false)
setProperty('winningIconDad.visible', false)
setProperty('winningIconDad.x', getProperty('iconP2.x'))
setProperty('winningIconDad.angle', getProperty('iconP2.angle'))
setProperty('winningIconDad.y', getProperty('iconP2.y'))
setProperty('winningIconDad.scale.x', getProperty('iconP2.scale.x'))
setProperty('winningIconDad.scale.y', getProperty('iconP2.scale.y'))
if getProperty('health') <= .375 then
setProperty('iconP2.visible', false)
setProperty('winningIconDad.visible', true)
else
setProperty('iconP2.visible', true)
setProperty('winningIconDad.visible', false)
end
--end --uncomment if using WHITELIST or BLACKLIST
end
Hello gentleman! girlsdelhi.in is the best Delhi escort service website. We provide a wide range of escort services like:- Russian escort, Call Girl In Delhi, Independent escort, Model escort, Celebrity escort, Air-Hostess escort, and more.