When I put the following code at the top of my main.lua file
local openfeint = require("openfeint")
openfeint.init("XXX", "XXX", "XXX", "XXX")
The first time my game is launched, the openfeint dashboard opens up immediately which I find quite annoying.
I therefore thought I could just initiate the init call if the user clicks an openfeint button that I have included. So at the top of main.lua I still include the
local openfeint = require("openfeint")
If the user does not click on the openfeint button, and my game calls some openfeint code such as the following, my game crashes.
openfeint.unlockAchievement (771812)
Does everyone just accept the fact the first time the game is launched the dashboard appears or does anyone have a solution to this?
Thanks
Paul [import]uid: 7863 topic_id: 7095 reply_id: 307095[/import]