Class cc.TransitionFade

Class Summary
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

  • <static> {cc.TransitionFade} cc.TransitionFade.create(t, scene, color)
    Fade out the outgoing scene and then fade in the incoming scene.
    // Example
    var myTransition = cc.TransitionFade.create(1.5, nextScene, cc.c3b(255,0,0))//fade to red
    Parameters:
    {Number} t
    time in seconds
    {cc.Scene} scene
    {cc.Color3B} color
    Returns:
    {cc.TransitionFade}
  • ctor()
    Constructor
  • {Boolean} initWithDuration(t, scene, color)
    initializes the transition with a duration and with an RGB color
    Parameters:
    {Number} t
    time in seconds
    {cc.Scene} scene
    {cc.Color3B} color
    Returns:
    {Boolean}
  • onEnter()
    custom on enter
  • onExit()
    custom on exit