Need an example to integrate Achievements in my game

I have succesfully integrated Openfeint in my game with one Leaderboard which is working. During the
review by Openfeint, my game was denied because I have no achievements.
Can someone explain me what I have to do, to integrate achievements in the game?? Do I have to
integrate some code in the game?? How does the notification work when someone finished an achievement??
I am realy a bit lost because I do not understand what is written by Openfeint.
Michael [import]uid: 12632 topic_id: 10260 reply_id: 310260[/import]

In my game Match Game Magic I have an achievement called Gone In 60 Seconds which you can get if you finish a puzzle within a minute.

When someone starts a puzzle I start a timer and when they finish the puzzle this is part of the code that’s executed:

if tonumber(currentSeconds) \< 61 then  
 openfeint.unlockAchievement ( "123456" ) -- Gone in 60 Seconds!  
end  

That number I’m passing in is the Achievement number that I got from OpenFeint when I created that achievement.

In a previous part of the program I took care of logging in to OF, so handling achievements is very easy after that.

I hope that helps.

Jay
[import]uid: 9440 topic_id: 10260 reply_id: 37425[/import]

Jay’s example is good and clear, however if you feel you need more detailed information there are several tutorials on http://Techority.com about implementing OpenFeint, including one just on achievements.

Peach :slight_smile: [import]uid: 52491 topic_id: 10260 reply_id: 37429[/import]

Yeah, on the forums I try for clarity + brevity – I save the extended explanations for my GameDevNation.com site.

Why? Because as much as I love Corona, I love me more. :smiley:

Jay

PS - I think that’s the first time I’ve ever used the word brevity.

PPS - Go to Peach’s site for more info on achievements – I have none (at this time) on GDN.
[import]uid: 9440 topic_id: 10260 reply_id: 37433[/import]

Thanks for the advices, now I understand how it’s working, means I have to integrate it into
my game code, huh, so achievements will be available in the first update of my game. [import]uid: 12632 topic_id: 10260 reply_id: 37468[/import]