坐等大仙: CCSpawn中使用CCRepeatForever无效的问题

local walk=CCMoveTo:create(time, newPos)
local animation=CCAnimationCache:sharedAnimationCache():animationByName(“player1-walk”)
local animate=CCRepeatForever:create(CCAnimate:create(animation))
local done=CCCallFunc:create(getDestination)
local seq=CCSequence:createWithTwoActions(walk,done)
local spawn=CCSpawn:createWithTwoActions(animate,seq )
spawn:setTag(TAG_ACTION_WALK)
self:runAction(spawn)

会输出【action update】。override me

ccsequence中不能用ccrepeatforever,这可以理解

CCSpawn里面的多个动作的时间应该一致
另外应该是CCRepeatForever里面使用CCSpawn吧

用下来感觉CCRepeatForever和CCRepeat只能放在最外层。

时间不用一致吧

只好加了句
animation:setLoops(-1)