00:00
00:00
Newgrounds Background Image Theme

LettuceNFrenchFries just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Browse Sections

Newgrounds Wiki: UNLOCK_MEDAL

This event is fired when API.unlockMedal is called. This will fire even if the server does not respond with a MEDAL_UNLOCKED event.

APIEvent

This event will be an instance of APIEvent, and contain the following values:
  • type:String - APIEvent.UNLOCK_MEDAL
  • success:Boolean - Should always be true.
  • data:Object - Containing the following properties:

    • medal:Medal - The Medal Instance that was unlocked
    • x:Number - An optional X position for a medal popup
    • y:Number - An optional Y position for a medal popup