Cocos2d-x之CallFunc动作的侦听

//实现动作的监听,动作序列执行完后,弹出一个MessageBox

            label->runAction(

                Sequence::create(

                    MoveBy::create(1, Point(100,100)),

                    RotateBy::create(1, 360),

                    CallFunc::create(

                        [](){

                             //弹出一个MessageBox

                             MessageBox("Action Complete", "complete");

                             }),

                    NULL));

posted @ 2015-03-28 08:11  silent-bobo  阅读(403)  评论(0编辑  收藏  举报