flambe
flambe copied to clipboard
[Suggestion] onEnterTransitionDidFinish
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.
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.