No Reaction TO Action!

Hi!

i wanted to make a shake motion, but i tried to run a sequence on a sprite in a for loop, but the sprite just stand still, with no actions… take a look at the photo please…and please tell me why!!

thanks!

wouldn’t you want to stop the actions after the loop, not inside it?

thanks for ur quick reply(u r a nice person!!!), but even when I remove the stopallaction function inside of the loop, it still not work…:frowning:

What is this i==6, That seems like a bug to me. I don’t know a for loop to work like that.

ok, now I have replaced == with <= and I have removed the stopallaction, but then im getting an error: CCAssert(! ccArrayContainsObject(pElement->actions, pAction), “”);!!! but why!!!

or can u just create a code sample, where u have two rotate functions that u made into a ccsequence, and then use it many times in a for loop, so that it will get a shaky effect, or r there a smarter method to make a good SHAKE EFFECT>>???

Thanks!