Ashley's Forum Posts

  • What's the JS error? Usually that should never happen so should always be filed as a bug.

  • According to StatCounter only 0.3% of devices still use Android 4.2, so yeah, they will be pretty hard to come by.

    Why not just stick to Android 5.0+ which is officially supported? According to the same stats it covers about 96.5% of all devices (and still slowly increasing).

    • Post link icon

    This thread is a few years old and is now out of date. You should use the System 'Sort Z order' action, which is significantly faster.

  • tarek2 - I'd suggest looking for a tutorial or course on how binary data/storage work. It's a general computing topic and will help you understand how Construct's Binary Data object works, because that just gives you access to a chunk of raw memory.

  • You can set a timeline's result mode to "relative", and use the Timeline plugin's "Set instance" action to play a timeline with a different instance.

  • It's not broken. It's just a message that appears, and work is already actively being done to make the message go away.

  • Well, I guess you can render using raw WebGL calls, but it's not ideal. Construct's renderer has its own batching and state tracking system, so if you make any changes at all to the WebGL state, you will need to save the old state, do any rendering with custom WebGL calls, then restore the old state again. This is necessary to ensure the WebGL state is consistent with what Construct's engine expects it to be (if you change state and leave it, you're pulling the rug out under the engine and will break stuff). Even then, changing loads of WebGL state is slow. So if you go down this route, your next performance bottleneck will be rendering lots of animations simultaneously, as it hammers saving and restoring loads of WebGL state repeatedly during a frame. Additionally if you make raw WebGL calls you bypass the rest of the renderer, which makes it impossible to use things like custom WebGL shader effects, essentially removing the ability to use that powerful (and very useful artistically) feature.

    The ideal solution would be to render everything in a plugin Draw() call using IWebGLRenderer. This fully integrates with Construct supporting all features like effects, and works with the existing renderer code and batching system, so you won't need to do things like save and restore masses of WebGL state every draw, and takes advantage of its sophisticated batching system to ensure maximum performance. The renderer is a fairly high-level API and can do many of the things the standard canvas2d can, so it should be feasible - but you might have to change a lot of code, since it works differently.

  • The previous link is to a Construct 2 tutorial. For the Construct 3 tutorial see Publishing to the web.

  • There's several problems - you need to assign srcObject, not src; I think you need to play the video too; you don't actually add the video to the document anywhere so it will never be visible. There's plenty of samples around on the Internet, try finding one of them and working from that.

  • There is no intended limit on the index - if there is one it will probably be around 1 GB (so an index of about 1 billion). You've probably made a mistake in your events or gotten confused with something else. Perhaps you are reaching the limit of a byte, which is 255. You can work around that simply by writing a larger value, like an int32.

  • There is no track ID named "greenBox" so it won't work.

    Edit the timeline, click the object track (where it has red - 2 above the X and Y positions), and set the ID property to "greenBox". Then it works. (You might want a clearer track ID though, since calling a track with a red box the "greenBox" track seems confusing.)

  • That looks correct, but did you set a track ID to "greenBox" in the timeline? It's easier to share a project in these cases so we can see how you've got everything set up.

  • Use the 'Set instance' action before playing it to change it to play with a different object.

  • Thanks, updated the links there.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ah OK, where was that link in the manual exactly? I can update it.