Class cc.TransitionPageTurn
Extends
cc.TransitionScene.
Defined in: CCTransitionPageTurn.js.
Constructor Attributes | Constructor Name and Description |
---|---|
A transition which peels back the bottom right hand corner of a scene |
Method Attributes | Method Name and Description |
---|---|
actionWithSize(vector)
|
|
<static> |
cc.TransitionPageTurn.create(t, scene, backwards)
Creates a base transition with duration and incoming scene.
|
initWithDuration(t, scene, backwards)
Creates a base transition with duration and incoming scene.
|
|
onEnter()
custom on enter
|
- Methods borrowed from class cc.TransitionScene:
- cleanup, draw, finish, hideOutShowIn, onExit
- Methods borrowed from class cc.Scene:
- ctor, init
- Methods borrowed from class cc.Node:
- addChild, convertToNodeSpace, convertToNodeSpaceAR, convertTouchToNodeSpace, convertTouchToNodeSpaceAR, convertToWorldSpace, convertToWorldSpaceAR, description, getActionByTag, getActionManager, getAnchorPoint, getAnchorPointInPoints, getBoundingBox, getBoundingBoxToWorld, getCamera, getChildByTag, getChildren, getChildrenCount, getContentSize, getGLServerState, getGrid, getOrderOfArrival, getParent, getPosition, getPositionX, getPositionY, getRotation, getScale, getScaleX, getScaleY, getScheduler, getShaderProgram, getSkewX, getSkewY, getTag, getUserData, getUserObject, getVertexZ, getZOrder, ignoreAnchorPointForPosition, isIgnoreAnchorPointForPosition, isRunning, isVisible, nodeToParentTransform, nodeToWorldTransform, numberOfRunningActions, onEnterTransitionDidFinish, onExitTransitionDidStart, parentToNodeTransform, pauseSchedulerAndActions, release, removeAllChildren, removeAllChildrenWithCleanup, removeChild, removeChildByTag, removeFromParent, removeFromParentAndCleanup, reorderChild, resumeSchedulerAndActions, retain, runAction, schedule, scheduleOnce, scheduleUpdate, scheduleUpdateWithPriority, setActionManager, setAnchorPoint, setContentSize, setGLServerState, setGrid, setNodeDirty, setOrderOfArrival, setParent, setPosition, setPositionX, setPositionY, setRotation, setScale, setScaleX, setScaleY, setScheduler, setShaderProgram, setSkewX, setSkewY, setTag, setUserData, setUserObject, setVertexZ, setVisible, setZOrder, sortAllChildren, stopAction, stopActionByTag, stopAllActions, transform, transformAncestors, unschedule, unscheduleAllCallbacks, unscheduleUpdate, update, updateTransform, visit, worldToNodeTransform
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.getInstance().setDepthBufferFormat(kDepthBuffer16);
Method Detail
{cc.ReverseTime|cc.TransitionScene}
actionWithSize(vector)
- Parameters:
- {cc.GridSiz} 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.
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.
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