Newgrounds ModuleMonkey Programming Forums/User Modules/Newgrounds Module
| This is a Newgrounds module which includes some basic functions which are:|
Connect:Void(appId:String, encKey:String) ' Connects to Newgrounds.
ShowScoreBoard:Void(sbName:String, x:Float, y:Float) ' Shows a Score board.
UnlockMedal:Void(medalName:String) ' Unlocks a medal.
DisableMedalPopup:Void() = ' This Disables the medal popup.
EnableMedalPopup:Void(x:Float, y:Float) ' Enables medal popup. Set position to where you want the medal popup.
PostScore:Void(sbName:String, score:Float) ' Post a score to Newgrounds score board.
HideScoreBoard:Void() ' Hides the score board.
AddFlashAd:Void(x:Float, y:Float) ' You can add a Newgrounds adevertising
HideFlashAd:Void() ' Hides the adevertising.
AdWidth:Float() ' Advert. Width
AdHeight:Float() ' Advert. Height
ScoreWidth:Float() ' Score Board Width.
ScoreHeight:Float() ' Score Board Height.
MedalWidth:Float() ' Medal Popup Width.
MedalHeight:Float() ' Medal Popup Height.
GetUserName:String() ' Get the current username, if it's not logged it returns Guest.
IsMedalUnlocked:Bool(medalName:String) ' Returns TRUE if the medal is unlocked.
IsUser:Bool() ' Returns True if it's a logged user.
Here you can download the module:
You can try my game that uses this module:
| This is cool, thanks for this! Nice pixel art too :).|
Unfortunately, i got this error :
| Fixed it :)|
I was posting a score of a non logged user.
I've also added a couple of new functions to de module:
IsConnected() ' Returns true if the connection exists and false if not.
AdsApporved() ' Returns true if your game was approved by newgrounds to show ads.
| It still occurs if you're not logged into newgrounds. Works fine if logged in. |
| hey I checked out your deviantart|
this fits in with a game im making, how much would you charge for a few pics?
| Any chances of someone having this? Original link is gone :(|
Edit: fount it at https://github.com/devolonter/MonkeyNewgrounds