Pause Transition

Is it possible to pause a Transition then Resume it? I know there is no API such as
transition.resume or transition.pause and I know is been ask in many different
forums to implement a pause all timer such as when you hit command arrow down
you suspend the simulator and if you hit it again you resume. So bottom line is

How will you Pause a Transition ? if we don`t have such API :frowning: [import]uid: 30314 topic_id: 17030 reply_id: 317030[/import]

it just an example of what can be done, i clearly cant understand it all
so if you figure it out, please let me know)

i’ll share my five cents:
[lua]
local stop = true

instance1.x = 150
instance1.y = flor1.y - 37

function left()
print(stop)
if stop == true then
transition.to(instance1, {time = 500, x = 100, onComplete = right})
end
end

function right()
print(stop)
if stop == true then
transition.to(instance1, {time=500, x = 300, onComplete = left})
end
end

right()

local btn = display.newRect(0,0,50,50)
btn.x = 50
btn.y = 50

local function touch(event)
if event.phase == “ended” and stop == true then
stop = false
elseif event.phase == “ended” and stop == false then
stop = true
right()
end
end

btn:addEventListener(“touch”, touch)[/lua]

test it and tell me what you think [import]uid: 16142 topic_id: 17030 reply_id: 63906[/import]

@ darkconsoles or Luffy (cool icon)

I tried testing your code and I manage to fix some errors on it but
I think we need something more efficient just like physics.pause()
and we dont have one. But I came across something call Transition Manager looks good Im about to test it out and try
to implement it on my code and see if it does what I want it to do.
I`ll let you know results and if you want check it out this is the
linke to Transition Manager and they have a demo video.
Link: http://karnakgames.com/wp/2011/03/transition-manager-for-corona-sdk-pause-resume-and-manage-all-transitions-in-a-scene/ [import]uid: 30314 topic_id: 17030 reply_id: 63909[/import]

I just leave it here:
http://developer.anscamobile.com/code/pausable-timers-and-transitions-speed-adjustment [import]uid: 58303 topic_id: 17030 reply_id: 64471[/import]

Just my implementation of transition manager…
Hope someone finds it helpful!

http://developer.anscamobile.com/code/pausable-transitions-very-simple-method [import]uid: 64174 topic_id: 17030 reply_id: 70290[/import]