How to pause a transition & then restart?

How to pause a transition & then restart in Corona?   Is this possible?

For example a game whereby you are moving objects around using transitions, however the game has a “pause” button, so the transitions have to stop during the pause and then restart.  I can see you can “cancel” a transition but I’m asking her about pausing.

If you were to cancel a “move to X,Y over 5 seconds” half way through, and then after unpause carry out this command again, the object may not move as required (e.g. might move 2x as slow as it has less distance to travel but still over 5 seconds)

Do you really need to write your own manually positioning code to cover this off, so it can take account of where the object should be after X seconds of game time where the gameTime itself can be paused.

Hi Greg,

Pausing/resuming isn’t yet available, but should be soon. It was supposed to happen several weeks ago (along with other new transition library goodies) but it got pushed back for various reasons. It’s coming, but I don’t have an exact ETA on when.

If you can’t wait until the official pause/resume functionality, there are several 3rd-party solutions in the Code Share. Or, you can build your own functionality.

Brent

Hi Brent - that’s great.  Can it be made so it’s easy to string together transitions (e.g. one after another) in such a way that they will respect a pause as appropriate.   

Hi Greg,

I believe the answer is yes, there will be chaining methods in Transition 2.0. :slight_smile:

Brent

http://developer.coronalabs.com/code/transition-manager

Hi Greg,

Pausing/resuming isn’t yet available, but should be soon. It was supposed to happen several weeks ago (along with other new transition library goodies) but it got pushed back for various reasons. It’s coming, but I don’t have an exact ETA on when.

If you can’t wait until the official pause/resume functionality, there are several 3rd-party solutions in the Code Share. Or, you can build your own functionality.

Brent

Hi Brent - that’s great.  Can it be made so it’s easy to string together transitions (e.g. one after another) in such a way that they will respect a pause as appropriate.   

Hi Greg,

I believe the answer is yes, there will be chaining methods in Transition 2.0. :slight_smile:

Brent

http://developer.coronalabs.com/code/transition-manager

I’ve messed around with Transition Manager and it works, except… it doesn’t call the onComplete.  Anyone ever run in to this?

I’ve messed around with Transition Manager and it works, except… it doesn’t call the onComplete.  Anyone ever run in to this?