Ashley's Recent Forum Activity

  • 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

  • Apologies, there was an outage of a few hours earlier. It should be up and running again now.

  • Use the instVars property. (See IInstance documentation)

  • Are you using any third-party addons? They may need updating. Construct's official features should not show this message if you export from r397 as we have already updated everything (so far as we are aware).

  • If your project does not load in the latest release, please send a copy of your project to supportbst@construct.net and we'll try to make sure that it can be opened. Assuming there is a problem with Construct itself and not a third-party plugin, then such issues are a high priority for us.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No, it's too late - Construct loads all textures with premultiplied alpha, so to correctly render them, you must use premultiplied alpha rendering mode.

  • There's no limit on how many addons you can install.

  • I'd guess you've set the wrong color/alpha values either in the texture data or in the renderer current color. For example if you try to render non-premultiplied alpha in premultiplied mode, or vice versa, you'll get incorrect rendering results. It's hard to say any more than that from just reading this post.

  • There's not enough information here to be able to determine if it's a bug. If you think it is a problem with Construct please file an issue following all the guidelines, as we need all that information to be able to help.

Ashley's avatar

Ashley

Early Adopter

Member since 21 May, 2007

Twitter
Ashley has 1,451,303 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
  • x109
    Coach One of your tutorials has over 1,000 readers
  • x64
    Educator One of your tutorials has over 10,000 readers
  • x3
    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
  • x36
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs