2017-10-10 5:40 GMT-03:00 claudio canepa <[email protected]>:

>
> Sorry, I gave bad advice. The correct way to stop an action is
>
> Starting the action:
>    composite = Animation(...) | Playsound(...)
>    worker_action = node.do(composite)
>
> Stopping the action:
>   node.remove_action(worker_action)
>

Ok, so in order to make the sprite stop moving, etc that would be the
recommended way

I assume that assigning a new action doesn't stop the former


> The call to remove_action will call worker_action.stop, and will do other
> needed housekeeping.
>
> This was causing the traceback you mentioned.
>

Now it worked


> Sorry again for the wrong info
>

Thanks for the detailed feedback

I want to rewrite the animation and sound classes so they can make use of
the repeat and multiplex commands instead of setting the loop as an
instance option. That way it would be easier to code sprite interaction.
Any advice is appreciated. This perhaps belongs to a new thread.

Alan

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/cocos-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to