Skip to main content

CCTransitionPageTurn

CCTransitionPageTurn

Cocos2D

@brief 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 CCDirector using: CCDirector::sharedDirector()->setDepthBufferFormat(kDepthBuffer16); @since v0.8.2

Inheritance: System.Object → Cocos2D.CCNode → Cocos2D.CCScene → Cocos2D.CCTransitionScene

Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, Cocos2D.ICCRGBAProtocol, System.Collections.Generic.IComparer{Cocos2D.CCNode}

Constructors

CCTransitionPageTurn()

CCTransitionPageTurn()()

CCTransitionPageTurn(float, CCScene, bool)

CCTransitionPageTurn(float, CCScene, bool)(System.Single t, Cocos2D.CCScene scene, System.Boolean 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:
t (System.Single)
scene (Cocos2D.CCScene)
backwards (System.Boolean)
Example

Fields

m_bBack(System.Boolean)

Methods

ActionWithSize(CCGridSize)

Cocos2D.CCActionInterval ActionWithSize(CCGridSize)(Cocos2D.CCGridSize vector)
Parameters:
vector (Cocos2D.CCGridSize)
Returns:
Cocos2D.CCActionInterval

InitWithDuration(float, CCScene, bool)

System.Boolean InitWithDuration(float, CCScene, bool)(System.Single t, Cocos2D.CCScene scene, System.Boolean 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:
t (System.Single)
scene (Cocos2D.CCScene)
backwards (System.Boolean)
Returns:
System.Boolean
Example

OnEnter()

OnEnter()()
Example

SceneOrder()

SceneOrder()()
Example