0

I want my action have an effect ease in / ease out, but I already have CCSequence. If I put CCEaseOut in front of my code, movement become weird. Is it possible to make CCEaseOut/CCEaseIn with CCSequence ? Here is my code :

[player runAction:[CCSequence actions:[CCDelayTime actionWithDuration:1],
                            [CCFadeTo actionWithDuration:2 opacity:255],
                            [CCDelayTime actionWithDuration:1],
                            [CCFadeTo actionWithDuration:7 opacity:0],nil]]; 

Thanks in advance

Alex Moskalev
  • 607
  • 7
  • 15

1 Answers1

0

You can use CCEase* with most actions but not the CCSequence action directly. You can however wrap one of the actions inside the sequence into a CCEase* action.

CodeSmile
  • 64,284
  • 20
  • 132
  • 217