How to Integrate Newgrounds Medals with Construct 3 (PixelPerfect NewgroundsIO API Plugin Method)
After several attempts and a lot of troubleshooting, I’ve finally figured out how to successfully integrate NGIO plugin with Construct 3 to enable Newgrounds medals in my game. I’m writing this tutorial mainly for my own reference, so I’ll have a clear step-by-step guide the next time I want to integrate medals (or other Newgrounds features) into another project. Right now, this covers just the medal setup—when I try out things like scoreboards or cloud saves, I’ll come back and update this with anything important I learn.
1. Newgrounds Account and Project Setup
Register or log in at newgrounds.com.
Visit Newgrounds Projects.
Create a new project and fill in the required information.
Scroll all the way down to the footer navigation and click API Tools.
After agreeing to the API activation, click “I agree, show me the tools!” to access the Newgrounds.io dashboard.
In the dashboard, locate your App ID and Encryption Key (copy these for the plugin), as well as Medal/Scoreboard/Cloud Save setup and other API tools.
Create medals on the Newgrounds project page. After creating each one, note its numeric ID for use in the plugin.
2. Downloading the Plugin
Download the Newgrounds.io plugin from Pixel Perfect Studio.
In Construct 3, go to Menu → Addons → Import Addon, then select the downloaded file.
Add a Newgrounds.io object to your project layout.
When exporting for publishing, ensure the entire exported folder (with all files and plugins) is uploaded to Newgrounds.
3. Setting Up the Construct 3 Project and Plugin Details
Start a new Construct 3 project (or use an existing one).
Check project properties such as viewport size, layout order, and loader style.
Select the Newgrounds.io object in your layout, then enter the App ID and Encryption Key exactly as shown in your Newgrounds API Tools page (no extra spaces or characters).
Set up an event to trigger NGIO login after player input (for example, “Press Any Key” on an intro/title screen). Login should not be called on “Start of Layout,” as browsers may block popups unless triggered by user action.
To unlock a medal during gameplay (such as on player death), use the plugin’s “Unlock medal” action and enter only the numeric Medal ID (not “ID#”).
4. Dos and Don’ts for Publishing the Project
Always export as “HTML5 Website” and upload every file to Newgrounds.
In export options, set Minify Mode to Simple. Using “Advanced” minification can break plugin code and prevent medals or NGIO features from working.
Double-check App ID and AES key for typos—these must match exactly or API communication will fail.
Test only on Newgrounds.com (not localhost or other hosts); medals and login require correct domain and project configuration.
Ignore the “Apps with Access” section unless specifically sharing medals or leaderboards between multiple App IDs or projects.

















