![]() |
cocos2d-iphone
2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
|
#import <CCTransition.h>
Public Member Functions | |
(id) | - initWithDuration:scene:withColor: |
Static Public Member Functions | |
(id) | + transitionWithDuration:scene:withColor: |
Protected Attributes | |
ccColor4B | color |
CCTransitionFade: Fade out the outgoing scene and then fade in the incoming scene.'''
initializes the transition with a duration and with an RGB color
+ (id) transitionWithDuration: | (ccTime) | duration | |
scene: | (CCScene *) | scene | |
withColor: | (ccColor3B) | color | |
creates the transition with a duration and with an RGB color Example: [FadeTransition transitionWithDuration:2 scene:s withColor:ccc3(255,0,0)]; // red color