Our goal is for Newgrounds to be ad free for everyone! Become a Supporter today and help make this dream a reality!

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.


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