Transition manager for Corona SDK: pause, resume and manage all transitions in a scene

Source: Internet
Author: User
Tags corona sdk

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.