{"author_name":"HybridMind","cat":"LD #15 - Caverns - 2009","comments":[{"author_name":"","time":"August 28, 2009 10:21 am","epoch":1251472860,"text":"Hey thanks for this!","spam":"N"},{"author_name":"","time":"August 28, 2009 10:43 am","epoch":1251474180,"text":"ye great one, would be nice to have an open API based on REST, then I would use it in Java hehehe","spam":"N"},{"author_name":"","time":"August 30, 2009 7:53 pm","epoch":1251679980,"text":"Thanks a lot for this; it made the whole process so much faster.","spam":"N"},{"author_name":"","time":"August 31, 2009 5:39 pm","epoch":1251758340,"text":"I&#8217;m glad it helped!","spam":"N"}],"epoch":1251472620,"likes":0,"metadata":{"p_key":"73121","p_author":"HybridMind","p_authorkey":"234","p_urlkey":"108943","p_title":"How to use MochiMedia Global Leaderboards with your Flash entry","p_cat":"LD #15 - Caverns - 2009","p_event":"LD15","p_time":"1251472620","p_likes":"0","p_comments":"4","p_status":"UPD5","us_key":"234","us_name":"HybridMind","us_username":"hybridmind","event_start":"1251417600","event_key":"1","event_name":"LD15"},"text":"<p><em>EDIT 8\/22\/10: Updating slightly<\/em><\/p>\n <p>I&#8217;ll likely be using a global leaderboard with my Flash game entry like last Ludum Dare because it can be really fun to encourage competition with fellow LDers on your game.  I remember a few Flash devs being curious about the process so I wanted to post a brief step by step tutorial for those of you who want to take the plunge this weekend.  If you are using AS3 I&#8217;ll also be hanging in the IRC channel and am happy to answer any tech issues you may have if you choose to implement these.<\/p>\n <p><strong>Without further ado &#8212; 10 Steps to Global Leaderboards:<\/strong><\/p>\n <ol>\n <li> Login or create a new account over at <a href=\"http:\/\/mochimedia.com\">MochiMedia<\/a>.<\/li>\n <li> Once you are logged into your &#8216;Dashboard&#8217; click the tab called &#8216;Add Game&#8217;.<\/li>\n <li>Fill out the &#8216;title&#8217; and the &#8216;dimensions&#8217; of your game.  For the purposes of LD15 you don&#8217;t have to worry about using &#8216;Live Updates&#8217; (their distributed version control system) so you can leave it on &#8216;No&#8217; if you&#8217;d like.  Click the submit button.<\/li>\n <li> At the next screen you can totally skip all these settings and hit the &#8216;Done&#8217; button at the bottom if you&#8217;d like.  Why? Well that is because all the settings on this page are related to using advertisements in your game which you probably don&#8217;t want to do for the purposes of LD15.  Ads aren&#8217;t required at all to use their global leaderboards.<\/li>\n <li> Once you&#8217;ve clicked done you will see your game&#8217;s title in the game list on this screen.  It should have a little &#8216;pause&#8217; icon next to it.  Don&#8217;t worry, this doesn&#8217;t matter.  Click on the title of your game.<\/li>\n <li> Once you&#8217;ve clicked on the title of your game click the &#8216;Scores&#8217; option to setup your highscores.<\/li>\n <li> You will see a little info about the leaderboards but the important part is to click the &#8216;Create Leaderboard&#8217; button at the bottom.<\/li>\n <li> On the &#8216;Create Leaderboard&#8217; screen enter the title for your leaderboard (ex: &#8220;Highscores&#8221; etc), optional description, and then any scoring format\/sort data.  Fairly self explanatory.  If you are using a traditional &#8216;high scores = better&#8217; then the defaults will probably be fine for you.  One thing you may want to mess with is the color \/ transparent and formatting options near the bottom as that will let you configure the leaderboard widget to match your game&#8217;s color theme.  I often do &#8216;transparent&#8217; so that my game background will show through when this is displayed. You can edit this later as well.  Click &#8216;Create Leaderboard&#8217; again at the bottom to generate yours. (<em>NOTE: I always click transparent and it resets to background.. you have to re-edit again and hit transparent and re-save for that option to stick.<\/em>)<\/li>\n <li> Your leaderboard should be created now and you will be looking at a screen displaying it.  The link now that you want to click on is called &#8216;actionscript code&#8217;.  A bunch of fields will appear along with 2 radio buttons.  One for AS2 and one for AS3.  Pick the appropriate technology for your game.  Also note your &#8216;game ID&#8217; and &#8216;leaderboard ID&#8217; as you will need these later.<\/li>\n <li> You can use these provided code snippets in tabs labeled &#8216;submit score&#8217;, &#8216;submit score and name&#8217; and &#8216;show leaderboard&#8217; to get the relevant editable code snippets to drop in that will connect your game to your leaderboards.<\/li>\n <\/ol>\n <p>Can&#8217;t wait for the theme!<\/p>\n \n <p>Tags: <a href=\"http:\/\/ludumdare.com\/compo\/tag\/as2\/\" rel=\"tag\">as2<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/as3\/\" rel=\"tag\">as3<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/competition\/\" rel=\"tag\">competition<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/flash\/\" rel=\"tag\">flash<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/highscores\/\" rel=\"tag\">highscores<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/leaderboards\/\" rel=\"tag\">leaderboards<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/mochimedia\/\" rel=\"tag\">mochimedia<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/tutorial\/\" rel=\"tag\">tutorial<\/a><\/p>","time":"August 28th, 2009 10:17 am","title":"How to use MochiMedia Global Leaderboards with your Flash entry"}