Search code examples
objective-cioscocos2d-iphonescene

cocos2d push scene with transition


Im using cocos2d v2.1 beta2 (not sure if important or not).

Im using CCDirector to push a scene. Im doing it like so: [[CCDirector sharedDirector] pushScene:[CCTransitionFadeUp transitionWithDuration:1 scene:[ShopLayer scene]]]; The problem is that in the beginning the scene appears for a split second and then the transition is performed. How do I fix this? Will I really have to switch to replaceScene:?


Solution

  • I have fixed this.

    I replaced the transition with CCTransitionSlideInL. Its working now.