//
// FadeTo
//
CCFadeTo* CCFadeTo::actionWithDuration(ccTime duration, CCubyte opacity)
{
	CCFadeTo *pFadeTo = new CCFadeTo();
	pFadeTo->initWithDuration(duration, opacity);
	pFadeTo->autorelease();

	 return pFadeTo;
}
Exemplo n.º 2
0
//
// FadeTo
//
CCFadeTo* CCFadeTo::create(float duration, CCubyte opacity)
{
	CCFadeTo *pFadeTo = new CCFadeTo();
	pFadeTo->initWithDuration(duration, opacity);
	pFadeTo->autorelease();

	 return pFadeTo;
}