CCArray的使用(Quick-cocos2d-x)

 

将连续动作全部添加到CCArray中,然后创建CCSequence的Action动作。

local array = CCArray:create()
array:addObject(CCPlace:create(ccp(200,200)))
array:addObject(CCShow:create())
array:addObject(CCMoveBy:create(1, ccp(100,0)))
array:addObject(CCCallFunc:create(ActionSequenceCallback1))
array:addObject(CCCallFuncN:create(ActionSequenceCallback2))
array:addObject(CCCallFuncN:create(ActionSequenceCallback3))
local action = CCSequence:create(array)

posted @ 2014-07-17 15:16  Mr轨迹  阅读(408)  评论(0编辑  收藏  举报