(1) Runactiondelay (1,ccfadeout::create (Ccrandom_0_1 () *0.3f+0.2f);
equivalent into:Ccdelaytime * delayaction = ccdelaytime::create (1); Ccfadeout * outaction = Ccfadeout::create (Ccrandom_0_1 () *0.3f+0.2f);
Pstar1->runaction (Ccsequence::create (delayaction, Outaction, NULL));
(2) Pstar1->runactiondelay (1.2f,ccrepeatforever::create (Ccsequence::createwithtwoactions (
Ccfadein::create (1.0f), Ccfadeout::create (1.5f))); Equivalent to Pstar1->runaction (Ccdelaytime::create (1.2f));
Pstar1->runaction (Ccrepeatforever::create (Ccsequence::createwithtwoactions (
Ccfadein::create (1.0f), Ccfadeout::create (1.5f));
(3) Plabelview->runactiondelay (Timedelay,ccsequence::create (
Ccshow::create (),
Ccmoveto::create (0.5f+time,ptend),
Cccallfunco::create (This,callfunco_selector (Gamelayer::onaddpoint), Ccinteger::create (StepValue)),
NULL), true); Equivalent to Plabelview->runaction (Ccdelaytime::create (Timedelay));
Plabelview->runaction (Ccsequence::create (
Ccshow::create (),
Ccmoveto::create (0.5f + time, ptend),
Cccallfunco::create (This, Callfunco_selector (Gamelayer::onaddpoint), Ccinteger::create (StepValue)),
NULL));
(4)
cocos2dx2.2.3 Important Study Notes