NO CCActionInterval problem....PLEASE HELP

HI!

I can’t find, or include CCActionInterval…

I’ve tried on probably all version, from version 2 to 3.2, but it’s just not working!

WHY AND WHAT TO USE INSTEAD!:slight_smile:

please please please HELP!

THANKS!

No need to include the specific header file(CCActionInterval.h), if you are including the master header file cocos2d.h.

In 2.x the class name is CCActionInterval. In 3.x it is ActionInterval.

Why do you need it anyway, as it is just the base class of the interval actions. Do you need to do some casting?

Thanks, and i just want to run a sequence with more actions…

Then you want CCSequence(2.x) and Sequence(3.x).

2.x:
CCSequence *mySequence = CCSequence::create(action1, action2, nullptr);

3.x:
Sequence *mySequence = Sequence::create(action1, action2, nullptr);

If you are using C++11 use nullptr at the end; if not use NULL or 0. But don’t forget to, as it is needed as the last action or it will crash.

There are plenty of create function calls. Create a sequence for just two functions, from a vector of functions, variadic and so on. See the API docs for CCSequence(2.x) and Sequence(3.x).

OMG THANKS!!! It worked!!!:slight_smile: