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
Post a Comment