Thanks, that did the trick =) On Thu, Jun 11, 2009 at 5:38 AM, Lucio Torre<[email protected]> wrote: > > On Thu, Jun 11, 2009 at 8:24 AM, Mathias Roth<[email protected]> wrote: >> >> Hey, >> I'm progressing quite well with my cocos2d-project, but I still have a >> question: how do I stop a repeating action/make an action repeat only >> till a certain condition is met? >> self.selected_char.do(Repeat(delay + fade + Reverse(fade))) > > As you can reuse the actions, we need a ay to get a reference to the > instance of the executing action that you want to cancel. The way we > do it is: > > action_instance = object.do( action ) > > Then, when you want to stop that action you do: > > object.remove_action( action_instance ) > > Hope this helps. > > Lucio. > > > >
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cocos-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
