向量:
ccpLength
ccpLengSQ
ccpDistance
ccSub
Call function
CCCallFuncND eventFunc = [CCCallFuncND
actionWithTarget:self
selector:@selector(gotoGameScene:data:)
data:role];
[eventFunc execute];
CCSequence, dynamically add action
+(CCFiniteTimeAction *) getActionSequence: (NSArray *) actions
{
CCFiniteTimeAction *seq = nil;
for (CCFiniteTimeAction *anAction in actions)
{
if (!seq){
seq = anAction;
}else{
seq = [CCSequence actionOne:seq two:anAction];
}
}
return seq;
}
自定義資料
CCNode.tag
CCNode.userData
沒有留言:
張貼留言