Be a Supporter!
Thrallec101
Thrallec101
  • Member since: May. 15, 2012
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Help, Ng Scoreboards Pls Sep. 10th, 2012 @ 07:38 PM Reply

So basicaly i just want to save a score,

import com.newgrounds.*;
// submit a score of 400
API.postScore("Leaderboard", 400);

this is what they told me to do for saving scores, but do they automaticaly load? or, how does that work? thank you in advance


...

Rational-Delirium
Rational-Delirium
  • Member since: Mar. 21, 2007
  • Offline.
Forum Stats
Supporter
Level 15
Melancholy
Response to Help, Ng Scoreboards Pls Sep. 16th, 2012 @ 10:03 PM Reply

That is exactly right. Make sure that your encryption key, ID, and board name match in both the projects page and the actual flash file. To display the scores in the SWF, you'll need to put the scoreboard component in the flash file. I end up getting lots of errors when I do that though, so I don't bother. There's also a scoreboard just above the review space in the submission's webpage, so you can display scores that way. An example of that kind of scoreboard can be found here.


You can't know what you don't know if you can only use yourself as a reference point.

Thrallec101
Thrallec101
  • Member since: May. 15, 2012
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to Help, Ng Scoreboards Pls Oct. 8th, 2012 @ 10:52 PM Reply

But where do i put the API and incryption key into my fla/swf?


...

Coop
Coop
  • Member since: Apr. 28, 2004
  • Offline.
Forum Stats
Moderator
Level 59
Writer
Response to Help, Ng Scoreboards Pls Oct. 9th, 2012 @ 03:09 AM Reply

At 10/8/12 10:52 PM, Thrallec101 wrote: But where do i put the API and incryption key into my fla/swf?

Might want to take this to the Flash or Programming forums to get a more concise answer.


Will it ever end. Yes, all human endeavour is pointless ~ Bill Bailey
News
#StoryShift Author

BBS Signature