Ashley's Forum Posts

  • Construct should work offline and be able to save offline (e.g. as a download, but obviously not cloud save while offline). If it does not please file an issue. As far as I'm aware it should all be working fine offline.

  • Preview works locally and so normally doesn't have to wait for the server. So not only are we not currently aware of server issues, even if there were it should not affect preview.

  • The scripting section of the manual links to some resources.

  • I haven't looked in detail at the documentation I linked to, but it appears you aren't doing it the way the documentation advised. For example it looks like you shouldn't be changing any code inside the iframe, that seems to be all managed by YouTube. I'd suggest following the documentation and doing it the way they recommend.

  • I also think the principle of running on ranges of instances at different ticks is not a good way to solve the problem. It potentially raises more tricky problems:

    - it's a subtle way to introduce framerate-dependent logic. It's essentially like saying "every N ticks", which is framerate dependent. On a high refresh rate screen the "every N ticks", or "for-each across N ticks" will run faster, and this can produce a different and potentially unwanted result, with parts of your logic running faster than they ought to. Using dt to avoid this is also extra-tricky, because you really want a time step across multiple frames. So you can end up introducing hard-to-find and hard-to-fix bugs in your project that won't show up until later.

    - it's very difficult to schedule efficiently. On a high-end machine you might want to go through 1000 instances per tick. However on a low-end machine that might still kill performance. If you reduce the number though, the high-end machine has wasted capacity - it could easily be processing many more instances but you had to put in an arbitrary limit for low-end machines. So now high-end machines have to pretend to be a low-end machine, cancelling out their performance benefit. Determining the right number depending on the hardware is a notoriously tricky problem. This is compounded when you consider: should it go through N instances per tick? e.g. if you process 100 instances per tick regardless of the total count, then you end up with increasingly long latency to process all instances (at 60 FPS, it takes 33ms with 200 instances, or 1000ms with 6000 instances). Or do you go through all instances per N ticks? Now you have an unbounded processing limit again, so it can still end up slow, defeating the purpose of doing this.

    I think there are several different existing approaches you could use that avoid these problems completely. For example you could use a boolean instance variable to opt-in instances to processing with a certain event. Or you could only process objects on-screen or nearby. Or you could find a different way to approach the problem that doesn't involve heavyweight for-each loops. It depends on exactly what you're doing.

  • Why not just use the browser WebSocket API directly?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's a problem with Safari - its tracking protection incorrectly identifies Construct's login as a tracker and deletes its storage. The only way to get it to work is to turn off tracking protection. You could also report it to Apple.

  • I just tried creating and destroying iframes by events and it worked fine.

  • You can't - the iframe content defines its styles, the parent page can't control it.

  • Use the 'Set CSS style' action to set "font-family" to the name of the web font.

  • I think creating variants of the same condition is actually more confusing for beginners. Now you have to explain what the differences are between the two, why you need both, and when you'd pick one over the other, instead of just explaining one condition.

  • Conditions already do filtering. I don't want to have to reinvent the wheel and have some kind of second system that also does filtering, but differently.

  • I'm afraid this is not supported in the SDK.

  • "Sort Z order" is a different case. It made an improvement to the algorithmic efficiency. This doesn't sound like it does that.

  • Please don't post the same question in multiple places. I deleted your other thread.