OriginalArticle, Reprinted, please note:Reprinted from All-iPad.netLink:Transition manager for Corona SDK: pause, resume and manage all transitions in a scene
If you have used the transition function that comes with corona, you will find that to pause a transform, you can only drop it by cancel, and then you can only start again when you want to recover it, at this time, you may need to remember how long the last transformation process has been executed before you can restore it.
The author of this blog provides a simple encapsulation: transitionmanager, which is used to implement the functions described above, in this way, we can conveniently pause and recover the corona transform. It is also very convenient to use, put the original transition. replace to with transitionmgr. use pause when paused, use resume when restored, and use cancel when canceled. Everything is so natural.
Of course, this encapsulation is not omnipotent, and the problems can be seen from the examples provided by it. When the transition is restored, you only remember the last execution time, and then subtract the executed time from the total transition time. However, the transition status cannot be completely restored, such as easeinout, during the resume operation, the system only starts again, not in the last state.
In general, it is good,CodeThe implementation is also very simple, you can refer.
Address: http://karnakgames.com/wp/2011/03/transition-manager-for-corona-sdk-pause-resume-and-manage-all-transitions-in-a-scene/
Original article, reprinted Please note:Reprinted from All-iPad.net
Link:Transition manager for Corona SDK: pause, resume and manage all transitions in a scene