The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.38 / 5.00 36,385 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.07 / 5.00 13,902 ViewsI've just finished a project and decided to add medals to it, but I can't seem to get it working.
I've made the medals at the project management and used the code
in the frame along with the "medal pop up area" movie clip.
import com.newgrounds.*;
API.unlockMedal("medal name");
But when I test it, it dosnt regonise it.
It also says on the project management that the status of the medals are Un-tested.
I'd really apresate it some1 could help or recommend a step by step tutorial .
At 3/26/12 10:27 AM, piggyclock wrote: I've just finished a project and decided to add medals to it, but I can't seem to get it working.
I've made the medals at the project management and used the code
in the frame along with the "medal pop up area" movie clip.
import com.newgrounds.*;
API.unlockMedal("medal name");
But when I test it, it dosnt regonise it.
It also says on the project management that the status of the medals are Un-tested.
I'd really apresate it some1 could help or recommend a step by step tutorial .
Are you Connecting to the API at the start of your project? You can only unlock a medal after a successful connection to the NG API. You'll know it was successful when you get something like this in your output:
[Newgrounds API] :: Medal: You Win! (locked, 25pts, Challenging)
[Newgrounds API] :: Medal: No Jive For You! (locked, 10pts, Moderate)
[Newgrounds API] :: 5 medals initialized. I'm having the same problem AND I'm connecting the API in FlashDevelop. I see the medals read/written there. But on the website, I don't see any output in the API output window, nor do I ever see a medal written out. High scores work though, so I pretty sure I'm connected! Halp!