Class cc.TransitionCrossFade

Class Summary
Constructor Attributes Constructor Name and Description
 
Cross fades two scenes using the cc.RenderTexture object.

Method Summary

Class Detail

cc.TransitionCrossFade()
Cross fades two scenes using the cc.RenderTexture object.

Method Detail

  • <static> {cc.TransitionCrossFade} cc.TransitionCrossFade.create(t, scene)
    Cross fades two scenes using the cc.RenderTexture object.
    // Example
    var myTransition = cc.TransitionCrossFade.create(1.5, nextScene)
    Parameters:
    {Number} t
    time in seconds
    {cc.Scene} scene
    Returns:
    {cc.TransitionCrossFade}
  • draw()
    overide draw
  • onEnter()
    custom on enter
  • onExit()
    custom on exit