View Profile TheCrimsonScythe
Welcome to the little page of some whatever being known as Crimson Scythe ^^ I play many types of game, but what I want most is to create my own game, which is my dream. I am an artist, a story writer, and a future game developer. Have a good day! :3

24, Male

Death Reaper

Saint Revenant

Castle Illusia


Exp Points:
340 / 400
Exp Rank:
Vote Power:
4.69 votes
Global Rank:

How to make medal?

Posted by TheCrimsonScythe - May 5th, 2014

I read a bit about the medal, API system and such thing, but would be good if there is someone who will explain more.

Few month later, I probably would start my game project, just a very simple one, but a medal would be great.

So, before I even start the project, would be good if I know how to make medal first ^^

Comments (5)

please tell me when you figure this out me and my friends can't figure it out.

What do you need help with exactly? It depends on the program you're using, but if it's Flash (maybe works with other programs too, I haven't tried others), here's a step by step guide:

1. ) Create a Game project (medals can only be applied for games)
2. ) Go to the API Tools tab and download the package for either AS2 or 3 (whichever you are using)
3. ) Open your project file, and the file you downloaded, and drag/copy the API component to your file (it looks like a preloader).
4. ) Copy the API and encryption key from the API Tools tab to the API component properties in your file (view the properties panel of the component to change these settings, along with many other ones)
5. ) Go to 'Medals' under the API tools tab on the project page and enter any medals you want. Medal name is case and space sensitive, so it has to be written exactly the same both here and in your game to work!
6. ) In your game, use this code to unlock the medal:

import com.newgrounds.*;
API.unlockMedal("Your Medal Name");

... it can be added anywhere, on a frame, within a function etc. The first line connects to the NG server, and the second one unlocks the medal. Also remember to enter your medal name between the " marks!
7. ) If you want a 'medal unlocked' notice to show, copy the medal popup component from that API file you downloaded earlier. It's invisible until a medal unlocks, so you can place it anywhere you like, traditionally bottom right corner. If you have a lot of frames, I'd reccomend keeping it on a layer of its own that spans the length of the game, this way it'll be accessible on all frames and doesn't need to be copied in on specific places.
8. ) Use the debug box under the submission preview to check that medals unlock properly.

aaand, I think that's it. Any questions?

wow thanks a lot ^^

Im not sure yet about what software i will use, maybe flash or stencyl, or maybe others. I hope it does work the same for the other software than flash.

Anyway, I will update if this didn't work on other games than flash, thanks again!

Btw @uncletom321 maybe you're interested in this medal guide too.

Alright, hope so!

If you use Stencyl i can tell you EVERYTHING. (PM if you decide to use stencyl)

I PM you later if so :)