00:00
00:00
View Profile LaJBel
I make games, open for collabs, enjoy & refresh 🧃

LaJBel Ms 🌻 @LaJBel

Age 15

Game Dev

Verbana

Argentina

Joined on 4/21/21

Level:
12
Exp Points:
1,480 / 1,600
Exp Rank:
35,991
Vote Power:
5.42 votes
Rank:
Town Watch
Global Rank:
55,883
Blams:
20
Saves:
118
B/P Bonus:
2%
Whistle:
Normal
Medals:
509

Scratch + Newgrounds.IO

Posted by LaJBel - 9 days ago


Hi! This is a tutorial on how to add medals and scorebaords to your Scratch game, i hope it will help you!


Step 1: 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!!


Step 2: Connect with Newgrounds


Now we will connect our game with newgrounds before using any function, 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 in Api Tools)


Yes now! We can use medal and scoreboards!


Step 3: Use Newgrounds functions


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 to html (very 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!!!


Links


Test Game

HTMLifier options template

Original post


Tags:

7

Comments (11)

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?