Class cc.TransitionSceneOriented
- Defined in: CCTransition.js
- Extends cc.TransitionScene
Constructor Attributes | Constructor Name and Description |
---|---|
A cc.Transition that supports orientation like.
|
Method Summary
Class Detail
cc.TransitionSceneOriented()
A cc.Transition that supports orientation like.
Possible orientation: LeftOver, RightOver, UpOver, DownOver
useful for when you want to make a transition happen between 2 orientations
Possible orientation: LeftOver, RightOver, UpOver, DownOver
useful for when you want to make a transition happen between 2 orientations
Method Detail
-
creates a base transition with duration and incoming scene
// Example var goHorizontal = cc.TransitionSceneOriented.create(0.5, thisScene, cc.TRANSITION_ORIENTATION_LEFT_OVER)
- Parameters:
- {Number} t
- time in seconds
- {cc.Scene} scene
- {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} orientation
- Returns:
- {cc.TransitionSceneOriented}
-
{Boolean} initWithDuration(t, scene, orientation)initialize the transition
- Parameters:
- {Number} t
- time in seconds
- {cc.Scene} scene
- {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} orientation
- Returns:
- {Boolean}