On Sat, Nov 2, 2013 at 4:44 AM, Daniel Gillet <[email protected]>wrote:

> Hello,
>
> I would like to chain some actions for multiple targets. Say I want to do
> a little animation with two sprites:
> 1. Sprite1 moves next to Sprite2 in 5 sec.
> 2. Sprite1 says: "Where should I go?" for 3 sec.
> 3. Sprite2 says: "Go to the bottom right corner." for 3 sec.
> 4. Sprite 1 moves to the bottom right corner in 5 sec.
>
> And let's just assume there is an action to say something (not relevant
> for what I'm trying to figure out).
>
>
>
If by say you are talking about to something akin a print, this should work

action_template1 = ( MoveTo(sp2.position, 5) +
                               CallFunc(say, "Where should I go ?") +
                               Delay(3) +
                               MoveTo(right_corner, 5)
                              )

action_template2 = ( Delay(8) +
                               CallFunc(say, "Go to the bottom right
corner")
                             )

-- 
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 http://groups.google.com/group/cocos-discuss.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to