00:00
00:00
Newgrounds Background Image Theme

LunaDvell just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Missing GM2 API functions documentation.

664 Views | 2 Replies
New Topic Respond to this Topic

Hey comrades!


I'm making a poop game in Game Maker Studio 2 for Newgrounders to play, and I wanted to add medals to it.

So, I looked up for the API on Negrounds.io and installed everything.


The functions all correctly appear in my project, and they probably work too, but they lack documentation on WHAT they do.

I downloaded them from here, and the text file in it refers to an information page that is this one.

However, said information page doesn't seem to contain ANY information on the Game Maker Studio 2 functions, like "ng_connect" and "ng_unlockmedal".


Am I dumb and can't see it, or is it actually missing?

Thanks bois.

Response to Missing GM2 API functions documentation. 2023-02-09 19:50:13


It's not the same API so you'll be best served by looking through the source code; I believe the "refer to newgrounds.io" is more for reference about what each function does. Since they don't use the exact same name, you'll have to use the closest matching equivalent. (That said, most of them are self-explanatory..)


For example, ng_unlockmedal => Medal.unlock; seems obvious enough but you may not necessarily know what "ng_loadReferral" is until you check the equivalent, Loader.loadReferral:

Loads a custom referral URL (as defined in your "Referrals & Events" settings), and logs the referral to your API stats.

Slint approves of me! | "This is Newgrounds.com, not Disney.com" - WadeFulp

"Sit look rub panda" - Alan Davies

BBS Signature

Response to Missing GM2 API functions documentation. 2023-02-10 04:00:20


At 2/9/23 07:50 PM, Gimmick wrote:It's not the same API so you'll be best served by looking through the source code; I believe the "refer to newgrounds.io" is more for reference about what each function does. Since they don't use the exact same name, you'll have to use the closest matching equivalent. (That said, most of them are self-explanatory..)

For example, ng_unlockmedal => Medal.unlock; seems obvious enough but you may not necessarily know what "ng_loadReferral" is until you check the equivalent, Loader.loadReferral:


Ah alright! Thank you!