Class cc.TransitionFade
- Defined in: CCTransition.js
- Extends cc.TransitionScene
Constructor Attributes | Constructor Name and Description |
---|---|
Fade out the outgoing scene and then fade in the incoming scene.
|
Method Summary
Class Detail
cc.TransitionFade()
Fade out the outgoing scene and then fade in the incoming scene.
Method Detail
-
Fade out the outgoing scene and then fade in the incoming scene.
// Example var myTransition = cc.TransitionFade.create(1.5, nextScene, cc.color(255,0,0))//fade to red
- Returns:
- {cc.TransitionFade}
-
ctor()Constructor
-
{Boolean} initWithDuration(t, scene, color)initializes the transition with a duration and with an RGB color
- Returns:
- {Boolean}
-
onEnter()custom on enter
-
onExit()custom on exit