Hey Corona Community,
Working on a game that has multiple objects (using the DMC Drag & Drop OOP code) and each of them uses a seperate timer to count down individual scores.
1 2 3 4 5 6 | function DropTarget:runTimer() local listener = function() self:objectTimer() end self.background:prepare("running") self.background:play() timer.performWithDelay(33, listener, 1000) end |
Hi
Maybe :
1 2 3 4 5 6 | function DropTarget:runTimer() local listener = function() self:objectTimer() end self.background:prepare("running") self.background:play() self.timer = timer.performWithDelay(33, listener, 1000) end |
views:1531 update:2012/2/8 8:46:10