Ashley's Forum Posts

  • I just had a quick go and the 8 direction doesn't stick to walls here.

    Can you post a .capx showing what you mean?

  • It's almost entirely up to the browser's rendering speed. Which browser are you using? If Firefox 6+, Chrome 14+ or IE9+ the canvas is hardware accelerated (although you still need up-to-date video card drivers). If it's hardware accelerated, you should be able to zoom like crazy and still have good performance.

  • gnugeek, great to hear! Can anyone else get it to work on Linux?

  • I can rotate objects totally smoothly without any wobble. What browser are you using? The hotspot position should not affect wobble.

    Hotspots are set to the nearest pixel. If you can put them a fraction of a way through a pixel, it means the object is shown at a fraction-of-a-pixel offset. This can cause blurry graphics on some browsers (annoying for pixel games) or other issues like the platform movement "floating" by a fraction of a pixel above the object, because the platform movement only works by whole pixels.

    The way the math works out, when zoomed in, a pixel's position is its top left point. Consider the very top-left most pixel: you probably want the hotspot at the top left of the object's bounding box, not appearing a small way inside the object when zoomed in a long way.

    Does that help? There should be no wobble no matter where you put the hotspot, that's a different issue (or so I thought). All objects are drawn from their top-left point, so it doesn't matter where the hotspot is, it just changes the math for calculating the top-left point, and that is calculated with floating point precision.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Google fonts is on our todo list!

  • Great work! Very interesting stuff. I suppose it will work better if you enable 'fullscreen in browser' then just set the window size to match the game window size - then you shouldn't get any white margins.

    Do these embedded browsers have hardware acceleration? I'm not sure if that comes with webkit/gecko, or if it's part of the browser itself. Hardware acceleration is a biggie.

  • Is this the URL of one of your sound effects?

    http://www.riachuelogames.com.br/astroblaster/media/SFX5.ogg

    It returns 404 not found. Double-check you uploaded it! If you definitely did, maybe your server is not set up to serve audio files. To fix it you need to add MIME types to the server. Make sure it is set to serve:

    .ogg with MIME type audio/ogg

    .m4a with MIME type audio/mp4

    We had to set those on the Scirra.com server otherwise it returned 404 for audio files as well.

  • Can you post the link to the game online so we can check ourselves and maybe investigate what's wrong?

  • You do not have permission to view this post

  • Very interesting! I think we'd prefer to release an EXE exporter than build this kind of functionality in, but it's a good option for those looking for extra distribution options. Do you have a list of steps for anyone else to repeat if they wanted to give it a go?

  • It looks like a Firefox bug. It works fine in Chrome, and if you change the action to append some text to a text object instead of alerting, it works fine in Firefox too. I guess Firefox gets confused about mouse clicks when it shows an alert in response to a click. If you hold down enter for a few seconds (so it's OKing the dialog constantly) it eventually goes away too... very odd. I'll look in to it, but I'm not sure I can fix this one.

  • You do not have permission to view this post

  • Oops, it's a bug. Fixed for next build, thanks for the find :)

  • You do not have permission to view this post

  • You do not have permission to view this post