Hi!
Trying to change scene:
[[CCDirector sharedDirector] replaceScene: [CCFadeBLTransition transitionWithDuration:1.0f scene:[MyScene scene]]];
This quickly shows MyScene (1 frame) before transition.
What can be wrong?
A fast, easy to use, free, and community supported 2D game engine
Hi!
Trying to change scene:
[[CCDirector sharedDirector] replaceScene: [CCFadeBLTransition transitionWithDuration:1.0f scene:[MyScene scene]]];
This quickly shows MyScene (1 frame) before transition.
What can be wrong?
Nobody can help? :"(
If you are using the latest version of Cocos2D, then it could be a bug. Otherwise, I would highly recommend updating to the latest.
I'm using latest release - 0.99.4
Here is very simple project with this bug(?)
http://github.com/Andy007/TransitionTest
Here is small video:
http://github.com/downloads/Andy007/TransitionTest/TestTran.mov
Is it bug or I do something wrong???
i think you do something wrong
__________________
Watch Piranha 3D Online Free
what's wrong?
I don't think there is anything wrong with the code you posted. I'm using 0.99.4 and it worked fine for me. Does the device do this when you push to it?
pushScene also works with this bug :(
Did you solve this problem?
I think it's because of the empty space of layer.
So I added a black layer :
if( ( self = [super init] ) )
{
CCLayerColor *layer = [CCLayerColor layerWithColor:ccc4( 0, 0, 0, 255 )];
[self addChild:layer];
...
or just use CCLayerColor as parent :
@interface MyLayer : CCLayerColorYou must log in to post.