wgfunstorm's Recent Forum Activity

  • I think what you're after is:

    "post.php?name=" & name & "&score=" & score

    (assuming name and score are 2 variables in your project)

    Text goes in quotations. Variable references go outside of quotations.

    Also I'm pretty sure, ? goes after .php and before name=, but after that first ? you use & instead of ? for any other post'ed properties.

  • Good stuff, love the art and the gameplay it plays very smooth.

    • I think you should make spike hitboxes smaller. It often feels like I die even though I didn't touch them! For example here

      imgur.com/4MVWd, if I simply jump up without even moving forward I die and that feels really unfair :(

    What's the trick for the 'this jump is not impossible' jump? I couldn't make it past.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You can connect to Parse through the Playtomic API and do all those things.. but that's a pretty advanced feature I won't be adding for a while (if ever). I'm mainly just doing this cause I need it for my own project <img src="smileys/smiley17.gif" border="0" align="middle" />

  • >

    jQuery.getScript(this.nameOfExternalScript, function(){});

    >

    this line looks nice but was bad for other browsers as firefox

    - i've changed it now and load the external file with pure javascript+dom

    => now the loading of the external-script should work <img src="smileys/smiley2.gif" border="0" align="middle" />

    Interesting... getScript is what I use in my plugin so it looks like I'll have to do a little more testing.

    Quick question. What do you do to include the .js file when the project is exported? I wanted to load my script from an external location, but fall back to a local version if it's unavailable. But the only way I could find to include the script during export was to set dependency in edittime, but that also automatically adds the script to the html thus making the remote loading useless.

  • Super, thanks!

  • Thanks for the feedback, I'll push out a fix with it. Strange it never changed playtomic in all my testing, now that you mention it.

    Just curious, is the performance of [""] the same as directly referencing? I was under the general impression that looking up an object according to a string is a little slower than accessing it directly. But maybe it's different in js?

  • My plugin makes heavy use of an external script... lots of Playtomic.Leaderboards.Save(data), Playtomic.Data.Views, etcetcetc

    This caused problems with the minifier and I ended up having to change everything to Playtomic["Leaderboards"]["Save"] and so on.

    So... it runs fine now, but it just looks a little strange to me. Did I do it right?

  • I just updated my Playtomic plugin with leaderboards support. To use it, all you need (apart from the plugin obviously!) is a Playtomic account (create one for free at playtomic.com). I tried to make it super easy to use and included a demo so you should be able to use without any advanced server/programming knowledge.

    Check it out if you're interested: http://www.scirra.com/forum/plugin-playtomic-metrics-analytics_topic47142.html

  • Leaderboards added! <img src="smileys/smiley4.gif" border="0" align="middle"> <img src="smileys/smiley4.gif" border="0" align="middle">   <img src="smileys/smiley4.gif" border="0" align="middle">

    Check out the live demo!

    Should be super easy to add to your project.

    BUMP

  • In the first release I ended up using $.getScript(url, callback) to do remote loading, because like you said it takes a little to load and I like the built-in callback.

    But what's the advantage of not having a local fallback?

    By copying the method from Facebook I meant how the channel.html file is included locally. I thought remote loading + local fallback would give the best of both. If there's no option for what I want yet, that's cool it's not that important.

  • Scoreoid is pretty cool, but I prefer Playtomic. <img src="smileys/smiley17.gif" border="0" align="middle" /> I have loads left to improve for this plugin, and barely support something like 5% of what Playtomic can do so I just don't have enough time to split it between 2 plugins. Besides, you sound more experienced than me! I don't think JavaScript is harder than As3 (hint hint!) <img src="smileys/smiley20.gif" border="0" align="middle" />

    Playtomic can do leaderboards btw, which I probably will add at a later point when I need them in my game.

    Also Ize makes a good point!

  • What I want to do:

    • make a plugin
    • that tries to load a script from a remote location (to save bandwidth)
    • but if it fails loads a remote version instead

    I think this sort of thing is fairly common... I've seen it done with Google Analytics a lot. Even C2 does it with jQ. I'm asking for my Playtomic plugin.

    The problem:

    To include the local version of the script during export I set dependency in edittime.js's GetPluginSettings (I copied the method from the Facebook plugin). However this also automatically adds it to the HTML therefore making the remote loading useless!

    What would help me is a way to include a script during export, but NOT automatically add a <script> tag for it to the html.

    I couldn't find anything like this using the search or manual.

    Ideas, suggestions, etc please <img src="smileys/smiley1.gif" border="0" align="middle">

wgfunstorm's avatar

wgfunstorm

Member since 30 Nov, 2011

None one is following wgfunstorm yet!

Connect with wgfunstorm

Trophy Case

  • 13-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

16/44
How to earn trophies