iphone - Queue different commands in cocos2d (CCSequene) -


i'm trying make label fade out screen, after if finished remove view. how queue view waits label faded before removes it?

id sequence = [ccsequence actions:[splashlabel runaction:[ccfadeout actionwithduration:0.5]], [self removechild:splashlabel cleanup:yes], nil]; [self runaction:sequence]; 

    id fade=[ccfadeout actionwithduration:1.0f];          id delay=[ccdelaytime actionwithduration:0.2];         id seqq=[ccsequence actions:fade,delay,nil];       [splashlabel runaction:seqq];            id stopani=[splashlabel stopallactions];      id remove=[self removechild:splashlabel cleanup:yes];             [self runaction:[ccsequence actions:stopani,remove,nil]]; 

Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -