00:00
00:00
lajbel
Web developer, videogames enthusiast and visual novels creator 💘
.
pfp by @ne-ne-23

Danie ☕ @lajbel

Boy-chan 🟢💚🤍💙🔵

Argentina

Joined on 4/21/21

Level:
13
Exp Points:
1,848 / 1,880
Exp Rank:
29,253
Vote Power:
5.55 votes
Rank:
Town Watch
Global Rank:
45,187
Blams:
23
Saves:
167
B/P Bonus:
2%
Whistle:
Normal
Medals:
595
Supporter:
2m

Scratch + Newgrounds.io

Posted by lajbel - September 8th, 2021


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"

iu_413034_9008270.png

This will serve us to execute JavaScript code giving a value to the variable, we will use it to interact with Newgrounds.io


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

iu_413035_9008270.png

(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


Get Medal:

iu_413036_9008270.png

(replace the 529 for your Medal ID in Api Tools)


Post Score:


iu_413037_9008270.png

(replace the 529 for your Board ID in Api Tools, and the 1234 for the score for posting)


Post Score with Variable:

iu_413038_9008270.png


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

iu_413039_9008270.png


And add this link https://cdn.jsdelivr.net/gh/lajbel/reversion-newgrounds@1.1/newgrounds.js in custom javascript section!

iu_413040_9008270.png


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!!!


Bonus: Cool links+


Putting your Scratch Game in Newgrounds tutorial by midgetsausage

HTMLifier options template

Real Game

Original post


Tags:

13

Comments

I tried it with SteakClock in the Desert, but it won't load completely. Stuck at 100%

You use Unknown/Private mode?

@Anonymous-Frog @LaJBel what's that?

Incongnito mode?

@Anonymous-Frog @LaJBel @LaJBel Yes I use it. It usually works fine for medals.

Yeah but in Scratch none, for the options of the compiler

Godspeed <3

THANK YOU SOOOOOOOO MUCH! +1 FOLLOWER

HUWIUHEQWHEIOUQWEHIUQWIHUERIHU2RIUHWERIHUWUFHFUHIUFIHWEHRUIWEHUR
---------
OH. MY. GOD. AMAZING!!!!!!!

Thank you so much

Followed

No way. This looks rad!

How much of the AppID and encyption code do I enter? The whole thing?
69420 or 69420:4hr5ITo2

All appid, and all enc code

And do I put them in brackets?

yeah

@Anonymous-Frog @LaJBel @LaJBel Could you fix this incognito issue?

THANK YOU

Thank you for making this, this will be very helpful for my Scratch game.

never use eval!

im made the medals in the gmae bit it will not appear for some reason

@BogivMusic why not?

whare can i find the Board ID?

To your game Project, api tools, scoreboards and make a scoreboard

@DemisurgeX @LaJBel Found out how to do it BUT the api is not working. the medals and score boards will not work.

wtf

@DemisurgeX @LaJBel @LaJBel thats what i said. https://www.newgrounds.com/portal/view/808945 see for your self

Do you intend on adding other newgrounds.io features or are the other stuffs already implemented? Like the get version features those stuff

More Results