Hi all.
There is a transition in cocos2d called CCTransitionFadeDown (and Up) which is like window-blinds transition.
I'm trying to modify it to go left or right, but I got stuck.
In CCTransition.m there's the implementation of CCTransitionFadeDown, and it's returning a CCActionInterval based on a method (CCFadeOutDownTiles) that is located in CCActionTiledGrid.m.
I changed a few values that I thought would do the trick, and while I did get a movement from right to left, the tiles still getting closed up to down.
I got lost figuring out what calls what (for example, what is calling this actionWithSize method and passes the v parameter?)
// from CCTransition.m
@implementation CCTransitionFadeDown
-(CCActionInterval*) actionWithSize: (ccGridSize) v
{
return [CCFadeOutDownTiles actionWithSize:v duration:duration_];
}
Does anyone have any ideas about what can I change to make a CCTransitionFadeRight (and Left)? Maybe it also could be added to the official engine afterwards.
Thanks for any help!