static CCActionInterval* create(float t) { CCTurnOffTiles* fadeout = CCTurnOffTiles::create(t, CCSizeMake(48,32), 25); CCActionInterval* back = fadeout->reverse(); CCDelayTime* delay = CCDelayTime::create(0.5f); return CCSequence::create(fadeout, delay, back, NULL); }
static CCActionInterval* actionWithDuration(ccTime t) { CCTurnOffTiles* fadeout = CCTurnOffTiles::actionWithSeed(25, ccg(48,32) , t); CCActionInterval* back = fadeout->reverse(); CCDelayTime* delay = CCDelayTime::actionWithDuration(0.5f); return (CCActionInterval*)(CCSequence::actions(fadeout, delay, back, NULL)); }
static CCActionInterval* create(float t) { CCTurnOffTiles* fadeout = CCTurnOffTiles::create(25, ccg(48,32) , t); CCActionInterval* back = fadeout->reverse(); CCDelayTime* delay = CCDelayTime::create(0.5f); return (CCActionInterval*)(CCSequence::create(fadeout, delay, back, NULL)); }