iPhone: Cocos2d how to make a sequence

Posted by Johannes Jensen on Stack Overflow See other posts from Stack Overflow or by Johannes Jensen
Published on 2010-05-26T18:56:39Z Indexed on 2010/05/26 19:01 UTC
Read the original article Hit count: 244

Filed under:
|
|

I have two logos, which I want to come in after each other.

I'd like to use CCFadeIn and CCFadeOut.

I have Logo1, and then I want it to CCFadeIn, then I want it to stay for 2 seconds, then make it fade out using CCFadeOut, and then make Logo2 CCFadeIn for 1 second, stay for 2 seconds and then go away during 1 second with CCFadeOut.

How I would make this I'm not completely sure. I can't seem to find a way to make a CCAction fire a method (let's say -finishedFadingInLogo1:), so I don't know how to do this.

Any ideas?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c