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