wgfunstorm's Forum Posts

  • I definitely need it... I could save 12% size in my image folder by upgrading to r92 with spritesheets, but then I would have to cut a feature that uses tiled sheets. What you're doing is fantastic!

    I'm not sure if you saw by the way, but Ashley suggested a way of doing it in canvas2d, maybe it's a start:

    ou can fix your plugin but it would be a little complicated. To tile a spritesheet frame you need to:

    1) make a new canvas and get a 2D context

    2) drawImage() the sprite's image on to it (you'll have to see the new code in Sprite's draw() which shows how to draw the part from the spritesheet)

    3) make a new Image() and set its src to canvas.toDataURL() - now you have a standalone image of the section from the spritesheet

    4) now you can make a pattern of that image and draw the section tiled

  • Oh man, this is fantastic! Thanks!

    I was trying to do the same thing, but the introduction of sprite sheets in c92 broke my version which was made with an older c2 version. And I didn't know enough html5/jscript to fix it so I had to downgrade my c2 version for now.

    If you can make it work with canvas2d as well you'll be my new favorite person <img src="smileys/smiley4.gif" border="0" align="middle">

  • Ok thanks for the reply. I tried your suggestion but that's just beyond my level of knowledge. Gonna stick with C91 for this game.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Any thoughts?

    • Can I disable the 'create spritesheets from animation frames on export' behavior for a plugin?

    or

    • How can I tile a spritesheet frame?

    I the weekend trying to figure out a solution without success and after lots of hours am ready to give up now. If I can't solve it within a day or 2 I have to revert to a previous C2 release. <img src="smileys/smiley6.gif" border="0" align="middle" />

  • Hey all. I just want to address a couple things.

    • The plugin has been updated to version 0.5, which uses the latest version of playtomic. Unfortunately due to some updates, the older version that the plugin was using stopped working but that has been fixed now.
    • The demo version on the first page of the thread should be working again.
    • I stopped using the plugin myself because I found the service to be way too unreliable for a professional product. Things like the 503 errors that a lot of people were reporting aren't my fault and there's nothing I can do about it.
    • The data can be extremely slow to update sometimes, or doesn't get saved at all, or gives wrong information. For example right now even though leaderboards are giving me good data, the server tells me there are 0 plays even though I can see in the dashboard that it is incorrect. Again, unfortunately there is nothing I can do about this... I don't control the server, I just show what the server sends me.
    • Use at your own risk! Since I am not using this service anymore myself, I don't have time to keep updating it. If anybody else wants to take over, please feel free!
  • Ok awesome Ill wait patiently then!

  • So I have this craptastic frankenstein pile of hacks plugin that combines sprite with the drawing code from tiledbg so that I can make a sprite with animation frames that tiles. It's super buggy (effects, moving, etc cause problems) so I won't publish it, but it worked fine for the its very narrow purpose of letting me easily change the game's background pattern on the fly.

    The game code is supposed to be locked, but I couldn't resist the spritesheet feature so I rebuilt using the latest beta, and of course now it's tiling the entire spritesheet instead of just the animation frame I want.

    Any tips? It would be super if there was just a toggle that says 'don't export as spritesheets for this plugin'. If the only way is to redo the plugin using the update sprite+tiledbg code I think I'll just have to revert my changes and ditch spritesheets since I wasn't really supposed to be touching the code in the first place. <img src="smileys/smiley18.gif" border="0" align="middle" />

    P.s. what would be awesome-est is if sprites and tiledbg were simply combined into 1 so that you would have a 'tiling' setting you can toggle on/off, never really understood the reason for making them separate.

  • I can't seem to find any information on editing the preloader.

    I can see the relevant code is put in c2runtime.js upon export, but especially with minimized/obfuscated editing it is a real pain.

    I don't want to do anything fancy, just change the background & loading bar color scheme, replace the logo and add a 2nd image.

  • Damn I haven't logged in here in ages! Sorry for the late reply.

    Just in case anybody still find this: yes, I've had the same problems. Sometimes scores can take up to an hour to update, or never show up at all. Unfortunately there's nothing I can do about it... sometimes the Playtomic servers are going to be slow or offline completely - it happens to every online system.

    Including fallback logic for when the scores don't load is a great idea!

  • I don't mean to hijack the thread but since it seems the question has been answered, I was wondering about the opposite case:

    Using 1 web font across multiple text fields.

    If I do 1 set webfont at the beginning of the project for textfield A, can I then use set font face on any text field with that webfont?

  • Bump. Any thoughts?

  • Thanks for the update, I know this is totally my fault. So thanks for taking the time for that.

    After some further digging, it now does appear like Playtomic relies upon POST to send data (eg leaderboards). The funny thing is I'm still not getting the error. When I run the project it accepts POST and OPTIONS just fine which is how it slipped by me unnoticed.

    <img src="http://i.imgur.com/lf8dY.jpg" border="0" />

    So unfortunately while it looks like the update will make the error message less jarring, as long as the request is rejected the plugin remains broken.

    Correct me if I'm wrong, it should work if they export & upload their projects to an external server that supports POST etc? Guess I'll just have to update the tutorial to with another step to 'not-so-easily add leaderboards' <img src="smileys/smiley26.gif" border="0" align="middle" />

  • Day of the Tentacle is one of my alltime favorites! I backed this yesterday, I only wish I had a spare 10k or even 150k lying around those donation rewards sound amazing (they have a few listed at doublefine.com that aren't listed on kickstarter)

  • A number of people have reported receiving the following error when running a project using my Playtomic plugin. I have been sent projects that cause the error to appear, but all my attempts to reproduce it locally have failed in all browsers. The projects that are causing them errors run perfectly fine for me.

    The error msg is also strange to me because when I check the network connections log in Chrome, every single Playtomic request is a GET. Hmmm.

    Can you think of anything that would cause the error to appear on one user's machine but not another? Some sort of security setting perhaps?

    ---------------------------

    Construct 2 Check failure

    ---------------------------

    Check failure! This is probably a bug:

    Server received a HTTP request which was not a GET - this is not supported

    Condition: pRequest->Verb == HttpVerbGET

    File: HttpFileServer.cpp

    Line: 195

    Function: void __cdecl HttpFileServer::ServerThread(void)

    Build: release 78 (64-bit) checked

    Component: HTML5 exporter

    (Last Win32 error: 0)

    [...]

  • mySprite.ImagePointX(mySprite.myImagePoint)