-
I have an animation running on the screen inside a group. On the simulator, I click on the Suspend option in the menu, resume back, click on the screen to move my character and everything is fine. When I try it on my iPad, when I resume and move the character, the original animation stay there and Corona adds one out of the group (which is part of multiple groups to have a parallax effect).
-
Also, I have a timer with the code below:
lTimer[1] = timer.performWithDelay(900000, RefreshConditions, 0)
Is it normal that when you come back from suspend, the timer calls the RefreshConditions function even if the time is not up? I tried putting the timer in pause with the code below but when I the iPad resume, the function is always called, how can I prevent this?
if event.type == “applicationSuspend” then
for i=1, #lTimer do
timer.pause( lTimer[i] )
end
transition.pause()
elseif event.type == “applicationResume” then
for i=1, #lTimer do
timer.resume( lTimer[i] )
end
transition.resume()
end
Also, do I need to pause the transitions (like I did above) when you suspend or Corona will do it ?
Thanks