cc.SpriteFrameCache:getInstance():addSpriteFrames("tupian.plist") local Circle_sp = cc.Sprite:createWithSpriteFrameName("1.png") Circle_sp:move(a_x,a_y) Circle_sp:addTo(self._lr , 1) local animation = cc.Animation:create() for i=1,6do local _frame = cc.SpriteFrameCache:getInstance():getSpriteFrame( i ..".png") if _frame then animation:addSpriteFrame(_frame) end end animation:setDelayPerUnit(0.08) --设置两个帧播放时间 animation:setRestoreOriginalFrame(false) --动画执行后还原初始状态 local action = cc.Animate:create(animation) local hide = cc.CallFunc:create(function() local fadein = cc.FadeIn:create(0.08) local fadeout = cc.FadeOut:create(0.08) local delay = cc.DelayTime:create(0.08) Circle_sp:runAction(cc.Sequence:create(fadein,delay,fadeout)) end) local delay = cc.DelayTime:create(0.5) Circle_sp:runAction(cc.Sequence:create(action,delay,hide))