Ohhi Scratch Developers. welcome to this tutorial of how use Newgrounds.io (medals, scoreboards) in your Scratch Game, I hope it will help you!
Step 1: Eval Variable
In your project, add a ☁️cloud variable with the name "eval"
Step 2: Connect with your game
Now we will connect our game with Newgrounds before using any thing, you must put it in a 🚩FLAG event, to avoid errors
(Replace appid with your App ID and enckey with you Encryptation Code, you can find it in Api Tools of your project)
Ready! Now we can use the Newgrounds.io Functions!
Step 3: Newgrounds.io functions
We will quickly look at an example for each function
(replace the 529 for your Medal ID in Api Tools)
(replace the 529 for your Board ID in Api Tools, and the 1234 for the score for posting)
Post Score with Variable:
Step 4: Compile your game (IMPORTANT)
Now that you have used the api as you want, we need to compile it using the HTMLiefer compiler, put your project, choose the options that you like the most and above all, the following options
Now, compile your project, rename result.html to index.html, send it in a .zip and upload it to Newgrounds! Enjoy your game with medals and scoreboards!!!