I'm having a problem that I can't seem to figure out. I have two sprites. What I want to do is to have a sprite fade in AND then have a second different sprite fade in when the 1st on stops fading in. I can get the sprites to start fading in at the same time and vary the length of the fade in for the second, but that won't work for what I'm trying to achieve.
Here's the code that I'm using:
Sprite *left = [[Sprite spriteWithFile:@"face.png"] retain];
left.position = ccp(160,240);
[self addChild: left];
Sprite *right = [Sprite spriteWithFile:@"faceTwo.png"];
right.position = ccp(160,240);
[self addChild: right];
id actionIntro1 = [FadeIn actionWithDuration:2.0f];
id actionIntro2 = [FadeIn actionWithDuration:5.0f];
[left runAction:actionIntro1];
[right runAction:actionIntro2];
What I'd like to do is have the first sprite fade in and as soon as that happens the second sprite starts to fade in.
Right now both start fading in at the same time, one for 2 seconds the other for 5 seconds.
I tried doing something like a sequence actions, but that crashes the app.
Any help is appreciated.
Demetrius