Reputation: 3701
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:
?
Upvotes: 2
Views: 2210
Reputation: 3701
I have fixed this.
I replaced the transition with CCTransitionSlideInL
. Its working now.
Upvotes: 3