Ashley's Forum Posts

    • Post link icon

    Running events fundamentally involves more work than running pure JavaScript code. For example running a list of actions involves a loop, and if you write JavaScript code that just does a series of tasks without a loop, then it has less overhead.

    In many cases the overhead of the event engine doesn't matter though, and as I mentioned many aspects of the engine are extremely well optimized and would be difficult to match in your own JavaScript code, e.g. pathfinding.

    If you want to know the exact performance difference, as I said, you can get a very precise answer by measuring it yourself.

  • No, because people abused it, which itself was a difficult moderation problem. We don't want to start reading people's private communications, so the feature was removed.

  • I'd point out that parts of the runtime, like the collision engine and pathfinding, are extremely well optimised. If you write your own JavaScript code equivalent and don't spend several weeks optimizing it to the max, then Construct will probably still be faster, even with events.

  • Moved to Construct 2 forum

  • Please note the Forum & Community guidelines advise against replying to people breaking the rules:

    Please don’t reply to people violating the rules; use the report button to report them privately.

    This is also to prevent having your own posts deleted if the thread is removed.

    FWIW the Forum & Community guidelines are IMO pretty common sense stuff - we have them written down to make it clear to anybody who might be in any doubt, and as to have specific rules to refer to when people break them. It's also generally impossible to prove any kind of intent, so we have to enforce the rules equally regardless of whether people seem to be aware of them or not.

  • It should work. Maybe you have a browser extension that's stopping Construct saving anything locally? Some privacy extensions might do that, and it may prevent Construct remembering your login or working offline.

  • The debugger is showing over 1GB of memory usage for images in your game, which yes, will be far too much for some devices.

  • There's no point trying to hide things from the console. If the user knows how to use a debugger, they can access everything anyway. Don't worry about it. Script minification is a much more effective barrier to stop people snooping in your code, but it's not bulletproof, and nothing is, unless you want to spend all your time in a DRM arms race.

  • You are looking for the wrong solution. Downgrading your project to an older version will cause more problems than it solves.

    I can't see input, keyboard event under event options in r197.2

    It's not clear what you mean. It could in fact be working normally. Can you explain more about what this problem is exactly?

  • It works for me and as far as I'm aware it is working for everyone else too, which suggests the problem is on your end, perhaps something to do with your connection, firewall, network configuration, browser extensions interfering, or something else. You can also always do a manual offline build with the Cordova CLI.

  • It should work. It's hard to say more without seeing your project.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The original question mentions optimization, but includes have nothing to do with performance. They're for organisation.

    You can think of an include as being like copy-pasting the contents of another event sheet there, but keeping things better organised.

  • In general, you cannot open projects in older versions of Construct. In this case you've used a new feature of the Pin behavior, which makes it impossible to open in prior versions, before that feature was added.

    Why can't you just keep using r197.2?

  • I still haven't managed to reproduce this but I made a speculative change in r199 to try to make sure the dimmer for dialogs is always removed. It would be useful to know if anyone can still reproduce the problem in r199.

  • Back in 2015 when WebStorage was originally replaced with Local Storage in Construct 2, it was noted that they aren't compatible:

    Also note that since Local Storage uses a different storage mechanism, it will not be able to read any existing data saved with WebStorage.

    WebStorage uses a different storage backend behind-the-scenes - one which is slower, has a very low capacity, and loses data types. Local Storage is faster, has much higher capabity, and preserves data types. You sure left it a long time to upgrade!