flambe icon indicating copy to clipboard operation
flambe copied to clipboard

[Suggestion] onEnterTransitionDidFinish

Open accidentalrebel opened this issue 10 years ago • 1 comments

It would be nice if Scene can be notified if a scene transition has finished executing.

Cocos2D-x has something similar called onEnterTransitionDidFinish as seen here.

If the Node enters the 'stage' with a transition, this event is called when the transition finishes.

Of course, we could also add onEnterTransitionDidStart, onExitTransitionDidStart and onExitTransitionDidFinish to have full control over timings.

I actually have my own SceneManger which already handles this but I feel that it would benefit everyone if we were to implement this to Flambe. Will give this a shot as soon as I manage to get the Flambe source working on my system.

accidentalrebel avatar Jul 06 '14 13:07 accidentalrebel

That sounds good to me.

I'm planning to possibly revamp Director/Scenes now that we have Component.onStart and the new get methods on Entity. Having scenes that actually extend Scene makes sense now.

aduros avatar Jul 06 '14 19:07 aduros