cocos2dx lua 计时器 倒计时

local t imeProgress = cc. ProgressTimer : create (display. newSprite ( "#time_progress.png" ))
            : setReverseDirection( true)
            : setPercentage( 100)
            : addTo( self)

t imeProgress : runAction (cc. Sequence : create (cc. ProgressTo : create (time, 0 ), cc. CallFunc : create ( function ()
progress: setVisible( false)
self: OnEventGameClockInfo(viewid, id)
end)))

你可能感兴趣的:(cocos2dx lua 计时器 倒计时)