Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I have 3 animations.

The first has 4 frames with a total duration of 0.4s: ccanimation::createwithspriteFrames(animframes,0.1f);

The second has 2 frames with a total duration of 0.2s: ccanimation::createwithspriteFrames(animframes,1.0f);

The third has 4 frames with a total duration of 0.4s: ccanimation::createwithspriteFrames(animframes,0.1f);

I want all three animations to run in 2.8s I run all of the animations once with: ccrepeat(...,1);

I then add them to arrayAction and call:

sprite->runaction(CCSEquence::create(arrayAction))

in the update method. I call the update method with: schedule(schedule_selector(update),1.0f)

But when I execute it, something is not right.

share|improve this question
What exactly is not right with the result? – danijar Mar 20 at 16:16

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.