Hi Everyone
I developed “one game” and i want add “start time of game” and “best time of game” but i can’t do So, please give me idea how i can solve this problem… [import]uid: 87661 topic_id: 16025 reply_id: 316025[/import]
Start time as in day + time or just time played in one session ? [import]uid: 84637 topic_id: 16025 reply_id: 59499[/import]
Hi dear
just time played in one session…and show, best time if user bit “best time” then replace “previous best time” from “current user time”… [import]uid: 87661 topic_id: 16025 reply_id: 59670[/import]
Check out this API - http://developer.anscamobile.com/reference/index/timerperformwithdelay
You can use that to count up your time, eg;
[lua]local currentTime = 0
local function addTime ()
currentTime = currentTime +1
end
timer.performWithDelay(1000, addTime, 0)[/lua] [import]uid: 52491 topic_id: 16025 reply_id: 59700[/import]