How to use MindJolt’s API (and why you should do it)
Reading the comments in this blog, I saw there is a bit of confusion about MindJolt (MJ from now on) API
On the site, there isn’t any guide, and the only way to have some information is by email from Richard Fields.
Besides Richard must be a very busy guy with such a game portal, he always replies to emails… the only issue is sometimes it may take a week before a mail and another. That’s normal, and I’ll never thank Richard enough for the precious time he spends answering to my emails.
Before I show you how to use MJ API, I would like to tell you why you should use it in your games.
In order to make money with MochiAds, you need to submit a game to portals and sites with three main parameters: games played, eCPM and aggressivity
games played is the amount of times your game will be played in a portal. It’s very important, because sometimes (you will understand later why I wrote “sometimes”) tons of plays mean tons of ads shown and tons of money. Moreover, the more people play your game, the more people may click on the button in your game that opens your site. That’s why sponsors want to have their logo in your game: if your game will be played a lot, it’s possible that a lot of people will click on the “play more games” button they want you to put in your game.
In my case, I can’t say how many people come to this blog from a link into my games, but with about 4,000,000 games played, I think at least 2,000 people come and see this site.
Maybe you are one of them. If I am right, I would like to know it. Having a game on MJ frontpage means having from 30,000 to 50,000 games played every day, even if there was a day Christmas Couples reached 100,000 plays
eCPM is the estimated Cost per mille, or cost per thousand. Anyway in our case it’s not a cost, but the income.
If your game has an eCPM of $0.50, that means that every 1,000 ads shown you will earn 50 cents. eCPM may vary slighty according to the geographical location your game is being played… MochiAds did not release an official table but seems that US players raise the eCPM. My eCPM ranged from $0.02 to about $0.80… that’s 40 times higher, and means that in the first case 40,000 ads generate the same income as 1,000 in the second one.
Since every portal has its own audience, it’s not wrong talking about portals eCPM instead of games eCPM. According to my statistics, I suppose freeworldgroup has a low eCPM while MJ has an high one. It would be nice if someday Mochi guys will release a table with major sites eCPM.
aggressivity maesures the portal as if it was a virus. The more aggressive the virus, the more portals will be infected by your game. You have to know there are some portals that are extremely aggressive: when Circle Chain got a review on Jay is Games, a lot of minor portals got infected by it. Obviously I am not talking about a real infection… but if your game gets a frontpage on some famous portals, then every respectable portal must have your game.
Get a frontpage on NewGrounds, and you won’t need to submit your game to a thousand sites. It would be nice if developers help me to make a list of the most aggressive portals. MJ is not one of them, but it’s a gold mine anyway.
End of the boring part, and let’s see how to use MJ API
In the first frame of your game, the one where probably you put your MochiBot code, add this line:
_lockroot=true;
Then, in the frame where it’s game over and you are about to display the score, just write
ScoreAPI = new LocalConnection();
to connect with MJ server, and
ScoreAPI.send(_root.com_mindjolt_api, "submitScore", yourscorevariable);
To send the score. Just replace yourscorevariable with the variable you used to store the score.
If your game has different modes, such as easy, medium, hard, or puzzle, campaign, and so on, just add an extra variable in this way
ScoreAPI.send(_root.com_mindjolt_api, "submitScore", yourscorevariable, "easy");
Replacing easy with anything you want (just assure this makes a sense)
If your game already hosts MochiAds leaderboards it’s not a problem… there is no conflict and you don’t have to worry about anything. Once your game is ready, you can submit it by email at rfields [at] mindjolt [dot] com and if Richard likes your game, you are about to make at least $20/day
Thanks to Richard Fields for letting me publish this guide (I guess)
Tell me what do you think about this post. I'll write better and better entries.
They can be easily customized to meet the unique requirements of your project.
10 Responses to “How to use MindJolt’s API (and why you should do it)”
Leave a Reply


Hi Emanuele, thanks for this.
I’m also one of the happy guys, who has a game at mindjolts frontpage. And I enjoy it alot. I’ve had about 40 000k impressions in about 6 days. So it works, pretty fine for me :-)
//Frederik
Which one is your game, FJ?
how do i submit games to that website??
Email Richard at
rfields [at] mindjolt [dot] com
Great site - i’m a developer thats going to be following in your footsteps - though i have some slightly different ideas on how to maximise profit per game! I’ll definite take a look at mind jolt as a potential portal (a lot of the really huge portals mean your small game isn’t very visible). Much better to be highly visible on a smaller more unique site.
Just one thing - do you know google is attaching “This site may harm your computer.” to your website and when click on it, it takes you to a big warning page that this site is flagged as potentially dangerous? - just thought you’d like to know, keep up the good work :).
hey everyone!
come check out my site, it has some simple tuts on it.
Let me know if there is a problem viewing one of the tuts.
ty
Too bad they don’t support AS3 (yet). I heard a couple months ago that AS3 support would be there soon but it still isn’t here. :*( Is it possible to convert the AS2 to AS3 somehow?
I don’t see why the above code won’t work in AS3. It might require a few changes. I’m about to test it out, so I’ll let you know.
The AS3 loader is now supported, although it requires different code to integrate it.
Also, games may now be uploaded directly to http://developer.mindjolt.com/
i used to play mindjolt games.but now i cant get them to show up when i try to play them.can you tell me why