Ashley's Recent Forum Activity

  • 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.

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • I can't open the links - they say 403 forbidden. But your sample code uses premultiplied alpha incorrectly. If you want to draw with an opacity of 50%, then you need to set the color RGBA components to (0.5, 0.5, 0.5, 0.5) - because the RGB components need to be multiplied by the opacity when using premultiplied alpha. SetOpacity() only changes the alpha component, so will leave the RGB components of the current color unpremultiplied.

  • You do not have permission to view this post

Ashley's avatar

Ashley

Online Now
Early Adopter

Member since 21 May, 2007
Last online 25 Nov, 2024

Twitter
Ashley has 1,380,342 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
  • x107
    Coach One of your tutorials has over 1,000 readers
  • x61
    Educator One of your tutorials has over 10,000 readers
  • x2
    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
  • x35
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs