Hey guys all im trying to do is create a simple Timer for my game that counts while the play plays the level. i cant seem to get it to work, i have read his tutorial on this several times… here is what im doing:
local timeCounter = resetTimeCounter()
local timePassed = getCountedTime( timeCounter )
local gameTime = display.newText(timeCounter, 450, 5 native.systemFontbold, 35)
whenever i do this i get an error on the timePassed Line,
Jon mentions in his tutorial that, “You must pass your counter variable as an argument to getCountedTime() in order for things to work properly.” I cant seem to understand what he means, can someone please help me out with this very simple task? thank you
[import]uid: 19620 topic_id: 6948 reply_id: 306948[/import]