CCCallFunc …

This topic contains 0 replies, has 1 voice, and was last updated by  icanzilb 3 years, 7 months ago.

Viewing 1 post (of 1 total)
Author Posts
Author Posts
September 6, 2010 at 12:12 pm #224550

icanzilb
@icanzilb

I have an action which is running once on a sprite :

id flyUp = [CCSpawn actions:
[CCScaleTo actionWithDuration:0.9 scale:1],
[CCRotateBy actionWithDuration: 0.9 angle: 360],
[CCMoveTo actionWithDuration:0.9 position:ballHighPoint],
nil];

id flyUpSeq = [CCSequence actions:
flyUp,
[CCCallFunc actionWithTarget:self selector:@selector(oponentServed)],
nil];

However when I have a breakpoint inside the “oponentServed” – it executes constantly. Correct me if wrong but CCallFunc executes the selector once right?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.