sandy234 Posted November 21, 2013 Share Posted November 21, 2013 Any GMS has their game in Boostermedia portal. If so how did you implement following rules http://www.boostermedia.com/developer-program/technical Quote Link to comment Share on other sites More sharing options...
AhmedElyamani Posted November 21, 2013 Share Posted November 21, 2013 Which rule are you having problems with? Quote Link to comment Share on other sites More sharing options...
sandy234 Posted November 22, 2013 Author Share Posted November 22, 2013 Which rule are you having problems with? Last one Gained score Quote Link to comment Share on other sites More sharing options...
AhmedElyamani Posted November 22, 2013 Share Posted November 22, 2013 It's pretty simple . Create an extension and call it "BoosterAPI.js" (for example) , In the js file include all the functions you want , The file should look similar to this: //BoosterAPI.jsfunction UpdateBoosterScore(gainedScore){ try { var scoreObj = {scoreValue:gainedScore}; BM_API.getHighscores().submitHighscores([scoreObj]); } catch (e) { console.log("BOOSTERMEDIA_SUBMITSCORE not implemented. Gained score is: {gainedScore}"); }}//the other functions Add a new function , let external name be UpdateBoosterScore , and name whatever you want , I prefer to have the external and ingame name the same thing, so I just let it be UpdateBoosterScore. Add one argument to the function and let be "double" In the event whenever you gain score in game maker , call the function you've added , and pass the current score to the function in the first argument.//gmlscore+=1;UpdateBoosterScore(score); Quote Link to comment Share on other sites More sharing options...
sandy234 Posted November 22, 2013 Author Share Posted November 22, 2013 Ah thanks I thought I need to put a highscore button.So i dont need to check if score is highest score it will be done by boostermedia API right?? Quote Link to comment Share on other sites More sharing options...
AhmedElyamani Posted November 22, 2013 Share Posted November 22, 2013 Yeah I guess, Just implement the few functions in that API ,shouldn't take 20 minutes. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.