Ashley's Recent Forum Activity

  • This was not directly accessible from script, but it was easy to add, so there is now an IRuntime loadingProgress property in r419.

  • The code you showed is definitely wrong, so if something doesn't work, the first thing you should do is fix that code. I can't help any further if your code is obviously wrong, as my only assumption will be that wrong code is going to break things.

    The 'Play in background' setting in Construct's Audio object only affects audio played with the Audio object, and it only means "do not deliberately stop all audio playback when the page goes in to the background". So the default is to continue playing audio in the background, providing the browser allows it.

  • Currently the debugger inspector is designed to use flat tables. That works for most properties, and flat data structures like 1D arrays, but it doesn't work well for 2D or 3D arrays, or complex nested data structures like JSON. So it's not a case of "just add that", it means implemeting an entirely new kind of user interface within the debugger inspector, and adding new UI usually means the feature request is complicated and time-consuming, which generally means it has to be really important to be worth prioritising over hundreds of other suggestions.

  • B) Make it so new instances pulled from the project bar automatically become replicas of the "default" template if it exists.

    This design makes it a bit of a hidden feature, and hard-codes an English string which isn't great for non-English users. What about a property to choose the default template name used for new instances? This seems like a good solution as templates are the feature intended to be used for determining initial properties.

  • runtime.globalVars.Player = audio;

    This code is wrong - Construct's global variables can only be strings, numbers or booleans. You can't assign a complex JavaScript object like Audio to a Construct event sheet global variable (how would that work in the event sheet?). You will need to assign it somewhere else.

    Does anyone know if by adding the audio object, this will allow the entire app to stay alive in the background and all the scripted audio to continue to play?

    Adding the Audio object doesn't change the way browser permissions for audio playback work. If it's not working, it is most likely due to the mistake above.

  • This was changed earlier this year in r382. The engine has always stopped rendering frames when nothing is happening, but now the measurements better reflect what is really happening: FPS corresponds to actually rendered frames, and the newer Ticks Per Second (TPS) corresponds to the engine ticks, which continue even when nothing is rendered.

    I'm afraid as such matters involve personal details we cannot help on the forum - if you've already contacted the support email address then we will resolve the issue there.

  • Spiceuser - your post reads like it was AI generated (sounds plausible but is actually mostly unhelpful or wrong). Please don't use AI to generate posts - see the Forum & Community guidelines.

  • I can just about read a "texture exceeds maximum texture size" message in the error. It probably means your project uses an image larger than 4096x4096, which is the largest size you can rely on that works everywhere. Ideally Construct shouldn't crash in that case though...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I don't think this means you always need to use a Sprite Font - IIRC the issue only affected certain vertical alignments. If you use "top" alignment it should be consistent across browsers.

  • You need to put the worker script in the 'Files' folder of the Project Bar. Otherwise Construct treats it like your other scripts, which either get minified or go in a subfolder on export. To make sure a script doesn't go through that process on export, you need to have it in the folder for general files, so it's just copied as-is.

  • It's not clear to me whether you mean you want to list files in your project, or with a picker - you can use a file picker to pick a file directly, or you can use a folder picker to select a folder and then use the 'List contents' action to list all the files in that folder.

    It's also not clear to me what you mean by opening the image - perhaps you mean opening in the default associated app, in which case you would use the 'Shell open' action, or show the image in your project, in which case you'd need to read binary data from the chosen file.

    Note that if you want to do something like access a folder within the user's Documents folder, you need to use the special picker tag "<documents>", and that only works in desktop exports (Windows/macOS/Linux), and the same goes for the 'Shell open' action.

Ashley's avatar

Ashley

Early Adopter

Member since 21 May, 2007

Twitter
Ashley has 1,422,677 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
  • x108
    Coach One of your tutorials has over 1,000 readers
  • x62
    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
  • x35
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs