CCSequence no matching function for call 'create'

CCSequence no matching function for call 'create'
0.0 0

#1

When I do

CCFiniteTimeAction* sequence = CCSequence::create(action ,CCCallFuncN::create(this, callfuncN_selector(HelloWorld::animationDone)),NULL);

It gives me an error about no matching function for call ‘create’ for CCSequence

I’m using Cocos2d-x 2.1.3, I have cocos2d.h and cocosdhension namespace and cocos2d namespace all called in my header file. I have made sure to include the header file in the .cpp

Any idea’s why?


#2

creat(action, ….)
modify to creat((CCFineteTimeAction *)action, …)
have a try…


#3

I have the same problem with version 2.1.3. Can anyone help on this?

Shane K wrote:

When I do
>
CCFiniteTimeAction* sequence = CCSequence::create(action ,CCCallFuncN::create(this, callfuncN_selector(HelloWorld::animationDone)),NULL);
>
It gives me an error about no matching function for call ‘create’ for CCSequence
>
I’m using Cocos2d-x 2.1.3, I have cocos2d.h and cocosdhension namespace and cocos2d namespace all called in my header file. I have made sure to include the header file in the .cpp
>
Any idea’s why?


#4

I believe i fixed this issue by changing sequence into a CCAction


#5

i have the same problem too, and i change my code to CCSequence::create((CCActionInterval *)action …),then it solves my problem:)