cocos2d点击结束动画
CCRotateBy*rotaBy;rotaBy1[m_Location-1]=CCRotateBy::create(3,360*powf(-1,(s1[m_Locati...
CCRotateBy *rotaBy;
rotaBy1[m_Location-1] = CCRotateBy::create(3,360*powf(-1,(s1[m_Location-1]-s2[m_Location-1])>0));
CCEaseSineOut* eSlow[2] ;
eSlow[m_Location-1]= CCEaseSineOut::create(rotaBy1[m_Location-1]);
pDisc[m_Location-1]->runAction(CCRepeat::create(eSlow[m_Location-1],1));
此减速动画,在我再次点击的时候,他就停下来,而不需要转完在停下来 展开
rotaBy1[m_Location-1] = CCRotateBy::create(3,360*powf(-1,(s1[m_Location-1]-s2[m_Location-1])>0));
CCEaseSineOut* eSlow[2] ;
eSlow[m_Location-1]= CCEaseSineOut::create(rotaBy1[m_Location-1]);
pDisc[m_Location-1]->runAction(CCRepeat::create(eSlow[m_Location-1],1));
此减速动画,在我再次点击的时候,他就停下来,而不需要转完在停下来 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询