Hello,
I am new to cocos2d, and I have a conceptual doubt, wondering what would be the 'cocos' way of doing the following:
I have a title screen: a background with a title sprite that fades in, stays for a while, and fades out. I see two ways of doing this:
a] 1 scene with 2 layers: the background layer and the layer with the title sprite. Have the title sprite go through an action sequence of fadein, delay, fadeout. I add a function call action to the end of the sequence to replace the scene with the next one.
b] 2 scenes, scene1: the background alone, scene2: the background + the title sprite, and use transitions to fade from scene1 to scene2 and from scene 2 to scene 1. Not sure how to do the delay here (there is no such thing a a delay transition).
What would you recommend? I currently use a]
Additionally, in this same scenario, I'd like to be able to cancel the delay if the user touches the screen in the meantime (or skip the delay altogether if the user has touched already during the fadein, but I don't see how to stop or remove the delay action from the sequence (in scenario a). In scenario b I guess I could simply replace the 'delay transition' with the fadeout transition.
Thanks,
Ted B