00:00
00:00
Coolboyman
Game Developer who sometimes does other stuff!

Age 37, Male

Programmer Guy

Chicago, IL

Joined on 12/20/10

Level:
4
Exp Points:
128 / 180
Exp Rank:
> 100,000
Vote Power:
3.73 votes
Rank:
Civilian
Global Rank:
> 100,000
Blams:
2
Saves:
11
B/P Bonus:
0%
Whistle:
Normal
Trophies:
3
Medals:
650
Supporter:
8y 6m 26d

Newgrounds API for Unity now on GitHub!

Posted by Coolboyman - December 11th, 2014


If you want medals and scoreboards for your Unity game, look no further.

https://github.com/AdamRVierra/NewgroundsAPIUnity

Feel free to report any problems that you experience, it's still a work in progress.  Included is an example scene on how to interact with the Newgrounds API.  There's documentation included as well that serves as a step by step guide on how to get medals hooked up.

I also encourage others to help add support for the rest of Newgrounds functionality.  Most notably save files and the other unfinished functions that show up in the example scene.  So if you think you can contribute, go give it a shot!


1

Comments

If you need help with save files and the encryption process, I did that here in haxe: https://github.com/MSGhero/NG.hx/tree/master/src

Though psychogoldfish told me they were gonna change some of that in the future.

Thanks dude, I'll have a look at that later.

I did this first. Mine's Unityscript though. I also should finish it...I know how to do save files (and I did do actually saving them; I just didn't finish the loading scripts). https://bitbucket.org/Bcadren/ugrounds/src

That is really cool!

Hi!

Do you know if this works with OpenGL Unity build?
I test it on Unity and it works but when i build it and upload to the page i cant connect to the API.

Cheers.

That's really cool u made this.. I'm obsessed w/ winning medals and really want to integrate them in the Unity game I'm working on - thx!!

I'm trying to add this to my Unity game, but the API GameObject is giving me console errors, and the three parameters that are supposed to be there aren't.

The first says "Assets/Newgrounds/Code/API.cs(525,18): error CS0246: The type or namespace name `Obsolete' could not be found. Are you missing a using directive or an assembly reference?". The second says "Assets/Newgrounds/Code/API.cs(525,18): error CS0246: The type or namespace name `ObsoleteAttribute' could not be found. Are you missing a using directive or an assembly reference?".