Class cc.TransitionPageTurn

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.TransitionPageTurn(t, scene, backwards)

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(t, scene, backwards)

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);

var trans = new cc.TransitionPageTurn(t, scene, backwards);
Parameters:
{Number} t
time in seconds
{cc.Scene} scene
{Boolean} backwards

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.
    Parameters:
    {Number} t
    time in seconds
    {cc.Scene} scene
    {Boolean} backwards
    Deprecated:
    since v3.0,please use new cc.TransitionPageTurn(t, scene, backwards) instead.
    Returns:
    {cc.TransitionPageTurn}
  • ctor(t, scene, backwards)
    Parameters:
    {Number} t
    time in seconds
    {cc.Scene} scene
    {Boolean} backwards
  • {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