I've tried working through the transitions example. I've torn that example apart. When I try to apply it to what I'm working on it doesn't work. I'm using this code:
@interface FadeWhiteTransition : FadeTransition
+(id) transitionWithDuration:(ccTime) t scene:(Scene*)s;
@end
@implementation FadeWhiteTransition
+(id) transitionWithDuration:(ccTime) t scene:(Scene*)s {
return [self transitionWithDuration:t scene:s withColor:ccWhite];
}
-(void)startGame: (id)sender {
OneScene * os = [OneScene node]
[[Director sharedDirector] replaceScene: [transition transitionWithDuration:TRANSITION_DURATION scene:os]];
}
First of all ccWhite throws up an error.
Next "transition" undeclared first use of this action.
If anyone has a concrete example, I'd appreciate it. While the transitions example is good for showing all the possibilities, it not very useful for showing how to implement just one transition.
Demetrius