I have created timer to my game and time shows also in my game. I want to that timer starts 2 seconds after game has started. So i need to delay timer starting by 2 seconds someway. I have tried many things, but i havent succeed. Can somebody help me quickly??
Here is my code:
[code]
local t1 = system.getTimer()
_G.points = 0
local piste = display.newText( " " … points, 82.5, 4, nil, 20 )
piste:setTextColor( 255, 255, 255)
localGroup:insert(piste)
local function runningTime(event)
local t2 = system.getTimer()
_G.points = t2/1000 - t1/1000
piste.text = " " … points
end
local kello5 = timer.performWithDelay( 100, runningTime, 0) [import]uid: 18445 topic_id: 8781 reply_id: 308781[/import]