I just want to start out by saying thank-you all for the help that you gave me so far!
I have some problems posting up the highscore… I have been using peach pellen’s tutorials and they are proving to be very helpful! I got everything to work except for posting up the highscores…
Here is some code
local onDeviceGO=true
if string.sub(system.pathForFile("Icon.png", system.ResourceDirectory),1,6)=='/Users' then
onDeviceGO=false
end
lbID = "123456" -- i am using my real leaderboard id, just for a subsitute for the forum!
function setHighScore( lbID, points )
if onDeviceGO then
openfeint.setHighScore( 123456, \_G.time) --Edited ID here for you ;)
else
print("highscore called")
end
end
timerGO = timer.performWithDelay(2000, setHighScore, 1)
The global variable _G. time shows how much time has passed since the game has started, and i want that to be posted up to the leader board… and i have been using my test user on open feint.
[import]uid: 24708 topic_id: 14243 reply_id: 314243[/import]
[import]uid: 52491 topic_id: 14243 reply_id: 52650[/import]