ohhi scratch developer, this is a remake of the original tutorial of how to use scratch with newgrounds.io
Main functions 📦
here we will see the main functions that we all want to use, such as medals and scoreboards
Step 1: Eval Variable
add a ☁️cloud variable with the name "eval"
this is to run javascript and use the newgrounds.io functions! 😺😺
Step 2: Connect()
now we will connect our game with Newgrounds.io before using any thing, you must put it in a 🚩FLAG event, to avoid errors
(replace the first value with your App ID and the second value 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
(replace the number by your Medal ID, you can find it in API Tools)
Post Score
(replace the first value with your ScoreBoard ID, you can find it in API Tools, replace the second value with the score to give)
Post Score with Variable:
Step 4: Package your game (IMPORTANT) 📦
now that you have used the api as you want, we need to compile it using a packager/compiler.
Using HTMLiefer
if you want use HTMLiefer compiler, you need use this template. Now put your project id and choose the options that you like, then press HTMLify!, this download a zip and you must upload it to your newgrounds project 🐸
Using TurboWarp
if you want use TurboWrap Packager, you need install this template, unzip and load it with import settings here. Now put your project id and choose the options that you like, then press Package, this download a zip and you must upload it to your newgrounds project 🐝
Cloud Save ☁️
cloud saves are great, and they are very easy to use.
Step 1: Eval Output Variable
add a ☁️cloud variable with the name "eval output"
the purpose of using this variable is to receive the content that eval can return, in this case, the value of the cloud saves
Step 2: Set a Cloud save
(yes, it's easy)
Step 3: Get a cloud save
we must add a wait because for some reason the variable is not updated at the time the other variable is updated, a small wait will fix the problem.
that's it, you can now use the wonderful cloud variables in scratch. By the way, with eval output you can also use GetUsername() and GetVersion() 🦋🦋
No work ☹️
yes, it can happen that it does not work, it is normal, we are all human. I can help you, first I need you to check that you have done all the steps to the letter. If this does not solve your problem, I would appreciate it if you could change your Connect to this one (remplacing by your values)
Connect("55143:RrL4bDjH", "6kB/g/l9dLIdHFXLn4T69g==", { debug: true })
now, press f12 or ctrl shift c in your browser while testing your game, some messages will appear. Show them to me so I know how to help you! You can do it here or in pm 🦜🦜
Thanks 💌
i would like to thank all the people who have helped with support and so on, and all the scratch developers who have shown their appreciation and support for this ❣️
I also appreciate people who send me invitations to their projects using ng.io, just make sure you invite me as a beta tester, as I don't want to take credit for your excellent project. Thanks 💌
Bonus Links 🐝
Putting your Scratch Game in Newgrounds tutorial by midgetsausage
Anonymous-Frog
I tried it with SteakClock in the Desert, but it won't load completely. Stuck at 100%
lajbel
You use Unknown/Private mode?