Class cc.TransitionPageTurn

Class Summary
Constructor Attributes Constructor Name and Description
 

A transition which peels back the bottom right hand corner of a scene
to transition to the scene beneath it simulating a page turn.

Method Summary

Class Detail

cc.TransitionPageTurn()

A transition which peels back the bottom right hand corner of a scene
to transition to the scene beneath it simulating a page turn.

This uses a 3DAction so it's strongly recommended that depth buffering
is turned on in cc.director using:

cc.director.setDepthBufferFormat(kDepthBuffer16);

Method Detail

  • {cc.ReverseTime|cc.TransitionScene} actionWithSize(vector)
    Parameters:
    {cc.Size} vector
    Returns:
    {cc.ReverseTime|cc.TransitionScene}
  • <static> {cc.TransitionPageTurn} cc.TransitionPageTurn.create(t, scene, backwards)
    Creates a base transition with duration and incoming scene.
    If back is true then the effect is reversed to appear as if the incoming
    scene is being turned from left over the outgoing scene.
    // Example
    var myTransition = cc.TransitionPageTurn.create(1.5, nextScene, true)//true means backwards
    Parameters:
    {Number} t
    time in seconds
    {cc.Scene} scene
    {Boolean} backwards
    Returns:
    {cc.TransitionPageTurn}
  • {Boolean} initWithDuration(t, scene, backwards)
    Creates a base transition with duration and incoming scene.
    If back is true then the effect is reversed to appear as if the incoming
    scene is being turned from left over the outgoing scene.
    Parameters:
    {Number} t
    time in seconds
    {cc.Scene} scene
    {Boolean} backwards
    Returns:
    {Boolean}
  • onEnter()
    custom on enter