Ashley's Recent Forum Activity

  • I think falling back to the default instance is reasonable if the given template does not exist. Construct's design tends to be forgiving and try to do the right thing anyway even if invalid parameters are specified. Simply not doing something can itself be confusing, and end up in bug reports like "why isn't anything created?", and cause refactoring problems like if you delete/rename a template, then suddenly no objects are being created any more, which could well be worse than falling back to default parameters.

    Even with layers, IIRC if you specify a layer number instead of a layer name, it will clamp the number to the available layers and always create an instance. It's only if you specify a name and the name doesn't exist that it finally gives up as there isn't anything else reasonable it can do.

    I think a better approach might be some kind of warning if you specify a template that doesn't exist. That could apply to an invalid layer name too (although that is harder to verify as it depends on the associated layout, which depends on event sheet includes).

  • Use the system viewport expressions to identify the middle of the visible area taking in to account scrolling, scale etc. You must pass a layer to take in to account the layer transform. (ViewportLeft("Layer 0") + ViewportRight("Layer 0")) / 2 will the X co-ordinate of the middle of the screen for "Layer 0", and (ViewportTop("Layer 0") + ViewportBottom("Layer 0")) / 2 the Y co-ordinate.

  • As noted in the manual entry, HTML elements like Button are placed on top of the main canvas element, so none of the canvas content can overlap them.

  • Ashley yes we can, but only if we have a different object type for each hierarchy we want to spawn in!

    Doesn't the new templates feature fix that?

  • Can't you just use two 'Create object' actions - one for the tilemap and the other for a hierarchy with its content?

  • It looks like the server is responding 415 Unsupported media type. It's probably an issue with the server configuration or the way you make the request.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Make sure you wait for the "ready to use offline" message when loading a new version. Otherwise it won't have finished saving it for use offline. If you did see that message then everything should work offline.

  • A function that is not called has no performance overhead.

    Unless you call tens of thousands of functions per tick, the CPU overhead will probably be negligible.

    You can always make your own measurements too.

  • You should not need either permission. Camera permission is to use the device camera (which canvas snapshots don't need). Local Storage works without any permission - it just stores within the app's own storage, the "External storage write permission" option is only to write outside of that, e.g. to SD cards or system storage, which Local Storage doesn't provide. (It's a compatibility option in case some Cordova plugins need it.)

  • In short, it's not possible to prevent cheating if the server just believes what the client tells it. All you can do is try to make it complicated and moderate any obviously invalid score submissions.

  • IIRC it was complicated and it's not clear why it would be necessary so it was omitted.

    Tilemaps are usually used for large-scale level design. Why would you need it as part of a hierarchy?

  • It's important to clearly explain feature suggestions, such as precisely what it would do, and why existing features are not sufficient to cover it, in order for your suggestion to be considered. This and more is explained in the feature suggestion guidelines. For example if it seems another feature will do what you want, but you didn't mention it or explain why it's insufficient, it will likely be closed on the assumption you did not know that feature exists. This is very common - we get a lot of people requesting features that are already supported.

    I would advise posting a new suggestion that makes it clearer precisely what you're requesting and why it is necessary, as per the suggestion guidelines.

Ashley's avatar

Ashley

Online Now
Early Adopter

Member since 21 May, 2007
Last online 15 Oct, 2026

Twitter
Ashley has 1,826,703 followers

Connect with Ashley

Trophy Case

  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • Forum Mega Brain Made 20,000 posts in the forums
  • x126
    Coach One of your tutorials has over 1,000 readers
  • x74
    Educator One of your tutorials has over 10,000 readers
  • x5
    Teacher One of your tutorials has over 100,000 readers
  • Sensei One of your tutorials has over 1,000,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • x44
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs