-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Having different transition effects such as fading for both in and out of a scene.
For example, for fading into a scene you would use something like this.convergame.transition.in('fade', '2', '#FFF') during the init() function for the scene. This will render a white rectangle over the canvas that will gradually decrease the opacity of the rectangle over 2 seconds. Obviously, you would want to set the transition time shorter as the game loop would have commenced in the background. (Similar behaviour to other game engines with transition effects built in).
We might need to have a callback parameter for doing the transitions for performing tasks such as calling the change scene once the transition animation has completed.
Thoughts?