Ashley's Forum Posts

  • Actually, when I try to use 'Set up TypeScript' it reports an error for me. I think something might have been broken recently - I'll see if I can fix it for the next release.

  • It is defined in the editor-provided TypeScript definition files. The 'singleglobal' SDK sample works for me, being fully validated in 'watch' mode in VS Code.

    Make sure you're using the addon SDK v2, and that you followed all the steps correctly.

  • Then it takes another half an hour (no exaggeration) to open the large project again

    How big is your project? I have never seen or heard of a project taking so long to load.

  • The point I was making before is if correctly configured, it should load quickly. So the problem may be you need to make sure you've configured things correctly.

    IIRC the problem with the long startup is that Google's library simply hangs when incorrectly configured. So we put in a timeout so the app at least starts up in that case. But if you have it correctly configured this situation should not happen.

  • If I remember correctly, this came up before and it is that it takes a long time if it is incorrectly configured, as it is in fact timing out (and there is no better error message provided by Google's libraries). Perhaps DiegoM remembers some other details.

  • Construct doesn't attempt to do any button mapping. If buttons are interpreted differently on different platforms, it's probably the browser engine, system, or driver that's doing it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It works fine for me: https://www.dropbox.com/scl/fi/mgfxpf0ur4ihyxuzs397y/platforminfo-test.c3p?rlkey=bv0qahbldzncsx6ur2ez2th1v&dl=0

    As ever the fastest way to get help is to share a project file, so we can spot if you made a mistake somewhere.

  • If Telegram Mini Apps use a WebView, then it should work. If it's a custom engine then it will probably have loads of compatibility problems like this. Either way, your question would be best directed to Telegram Mini App support, as they make the app platform in question.

  • Gravity is just a force, so can't you just set gravity to 0, and then apply a per-instance custom force instead of gravity?

  • If you run in to a problem please file an issue following all the guidelines otherwise it's impossible to help.

  • I'm afraid the time it takes for Mobile Advert to start up is handled by Google's ad network - it's out of our control.

  • One problem that has come up in the latest release is that files and folder names that start or end with a space are actually invalid (systems like Windows block creating files with such names), and Construct now enforces this too. However it means existing projects which use invalid names with spaces at the start or end cannot be opened. These projects will have also been unable to be saved as a folder project because of the use of these invalid names, so arguably they were already broken due to the use of invalid names.

    To fix it you can do this:

    1. Open the project in the previous release r388.2
    2. Go through the Project Bar and make sure nothing has a name that starts or ends with a space
    3. Save the project
    4. Open it again in the latest release r397

    If it doesn't open, check the browser console for error messages again, and go through and repeat this process checking for that name in particular.

    If you still can't get it to open email your project to supportdlu@construct.net and we'll take a look.

    Unfortunately projects using invalid names is a really difficult problem and it's very difficult to have Construct automatically deal with this. The important thing is to make sure everything in your project has a valid name, and the latest releases do now correctly validate that, so it shouldn't be possible to happen again. And if you found you were unable to use folder projects, it should work again after doing this.

  • Assuming inst is a reference to an instance, and it has an instance variable named myNumber, then you'd write inst.instVars.myNumber to access its instance variable.

    If you're not sure about how to get an instance, I'd suggest going through the Learn JavaScript in Construct tutorial series.

  • Browsers don't let web pages override some important shortcuts, to prevent abuse. Unfortunately Ctrl+W is one of these: there is no way for a web page to override it, probably to avoid the situation an abusive web page is trying to make itself unclosable.

    Construct should prompt to make sure you want to close the tab if there are unsaved changes in your project, though.

  • The web has no built-in file listing feature. You can only make HTTP requests to named resources. Construct knows which files are in your project, but it doesn't know if you uploaded any other resources after exporting your project, so it can't have a true "list files" features.

    It should be easy to work around though: either keep your own array of filenames somewhere, or what I'd recommend is having a top-level import for the folder. For example if you have the files:

    myfolder/module1.js

    myfolder/module2.js

    myfolder/module3.js

    Then add myfolder/main.js which imports those modules. You can use "export from" syntax to conveniently re-export everything without having to list all its exports, e.g.:

    export * from "./module1.js";
    export * from "./module2.js";
    export * from "./module3.js";
    

    Then if you import myfolder/main.js you get all the modules in that folder imported. If you need to add a new file, then you can add module4.js in "myfolder", and then add a new line in main.js to export it too.