Ashley's Forum Posts

  • This is really odd, I'm stumped. I'll look in to it and see if I can find out any more information.

  • You do not have permission to view this post

  • This discussion is irrelevant - people are free to choose the browsers they want. IE9 has far and away the best canvas implementation - it draws with the best quality and is also the fastest. So I really like running Construct 2 games in IE9.

    IE9 supports canvas perfectly, there's no need at all for excanvas. The question is, why isn't it showing the canvas in the link? I guess something in the HTML is invalid and somehow broke it, but I can't find what.

  • You do not have permission to view this post

  • That's odd, I've had a look and can't see anything wrong. I've no idea why IE9 won't show the canvas. Anyone got any ideas?

  • Hopefully this helps:

    To get the time passed for this tick, use

    ar dt = this.runtime.getDt(this.inst);

    dt is the time, in seconds, that the physics simulation should advance. That should keep the speed steady no matter the framerate.

    To get a callback when an instance is destroyed:

    I just remembered there's already a function for this, because other parts of the runtime need it. Call

    untime.addDestroyCallback(function(inst) { alert(inst.toString()); });

    and it will alert the instance ID whenever something is destroyed.

    To get a callback when an instance is moved or rotated:

    There's nothing for this right now, but for the next build I've added a method for instances:

    nstance.add_bbox_changed_callback(function(inst) { alert(inst.toString()); });

    This will alert the instance ID whenever its bounding box is changed (x, y, width, height or angle is changed). Try to only add one callback and only for instances that really need it, because otherwise it'll add unnecessary overhead.

    Hope that helps, let me know if there's anything else you need!

  • , these are awesome. I'll get those changes in to the engine for the next build.

  • It's somewhere on a very long todo list! If it's quick, I'll see if I can bump it up to the next build.

  • Well it's weird, IE9 definitely can run canvas. I think whoever's game you are running must have made a mistake in the HTML. Could you post a link to it or copy-paste the HTML source here so I can see what they've done? Maybe we can add extra comments to help prevent people doing it again in future.

  • Ah, I made a silly mistake in the animations preview dialog. Fixed in next build, thanks!

  • Oh haha! Can you send me the .capx that does it? Must've made a mistake trying to work out the size of the largest frame.

  • That's odd. Were changes made to the HTML source? If you made a mistake editing the HTML it might always show the "not supported" message. Maybe post the HTML here.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just a heads up - r47 is out. As before, new releases won't be posted to the forum any more, so I've unstickied this thread.

  • You don't need to rename any files, when C2 exports everything's already set up just right. You just need to make sure all those files are uploaded.

  • Did you upload all the image files to the right place? If you press Ctrl+Shift+J in Chrome it shows the error log, which has several messages like "Failed to load resource: the server responded with a status of 404 (NOT FOUND) - sprite.png".