i’am having an issue with my transitions as they work normally when the app starts at first (i have it built on my iPhone ) it works perfectly fine but then the moment i suspend my phone all the objects get the same Y coordinates i would very much appreciate any help i could get on this subject mater because this is one of the final elements to my game
[lua] local FirstTransition = transition.to(DamageBar1,{time=700, y=-78})
local FirstTransition2 = transition.to(DamageBar2,{time=1075, y=-78})
local FirstTransition2 = transition.to(DamageBar3,{time=200, y=-78})
[/lua]
[lua]
local moved = function( event )
if DamageBar2.y < -77 then
DamageBar2.y = 650
updateScore()
transition.to(DamageBar2,{time=1700, y=-76})
elseif DamageBar2.y > -77 then
DamageBar2.y =-78
elseif DamageBar2.y < 650 then
end
end
local moved1 = function( event )
if DamageBar1.y < -77 then
DamageBar1.y = 650
transition.to(DamageBar1,{time=1700, y=-76})
updateScore()
elseif DamageBar1.y > -77 then
DamageBar1.y =-78
elseif DamageBar1.y < 650 then
end
end
local moved2 = function ( event )
if DamageBar3.y < -77 then
DamageBar3.y = 650
transition.to(DamageBar3,{time=1700, y=-76})
updateScore()
– body
elseif DamageBar3.y > -77 then
DamageBar3.y =-78
elseif DamageBar3.y < 650 then
end
end
[/lua]
any help is appreciated even if it only gets me one step closer to finishing thank you : )