00:00
00:00
View Profile LaJBel
I love code, make shit games and strange pixel art. Coffee lover ☕

Dani Báez @LaJBel

15, Tere

Developer

SPS

Buenos Aires

Joined on 4/21/21

Level:
13
Exp Points:
1,766 / 1,880
Exp Rank:
30,190
Vote Power:
5.52 votes
Rank:
Town Watch
Global Rank:
46,249
Blams:
23
Saves:
165
B/P Bonus:
2%
Whistle:
Normal
Medals:
574

Scratch + Newgrounds.io

Posted by LaJBel - September 8th, 2021


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


Real Game

HTMLifier options template

Original post


Tags:

12

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.

Does it work with turbobit? It also has the same options as htmlifier.

Nono, although there is such an option, it does not work in the same way... since eval does not exist

see https://github.com/TurboWarp/packager/issues/48#issuecomment-909892294

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

More Results