Ashley's Recent Forum Activity

  • If you run in to a problem please file an issue following the guidelines and we will look in to it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The problem here is what is the return type of runtime.objects[str]? For example suppose you have a Sprite and a Text object in your project. Will runtime.objects[str].getFirstInstance() return a Sprite instance (with animation APIs) or a Text instance (with text APIs)? TypeScript doesn't know, even if you persuade it that using str is valid.

    If there is only a small number of possible objects that may be created, it may be better to just use a series of if statements comparing the string and creating the right kind of object. If it could be anything at all, then your approach using any is probably all you can do, as you are telling TypeScript basically anything could happen there.

  • You should check the caching settings of your local HTTP server - if it says to cache resources for, say, 7 days, then the browser will honour that, and if you change the code then Construct will only get the old cached data even when it tries to retrieve the latest code. Usually a HTTP header like Cache-Control: no-store is the solution, but then you may still need to clear the cache after setting that.

    • Post link icon

    This is why I like decentralization to avoid a self-satisfied dictator like you.

    You are perfectly entitled to disagree with anything I say, but language such as this violates our Forum & Community guidelines, so I'm closing this thread. Please consider this a first warning and if repeated the moderation action will escalate.

  • One thing I've found useful for me working on a large project is keeping all of my global variables in their own event sheet and separating them into sections with comments/titles.

    This sounds like a good idea, but I'd add another suggestion which I think is an under-used approach in Construct: if you need a global variable, but you only use it within a particular group of events, then make it a static local variable instead. Being a local variable means it is only available in that group, so it doesn't clog up the global variables list; being static means it remembers its value permanently like a global variable.

  • I can't tell from that screenshot - if you zipped the containing folder, it's probably wrong, but if you zipped the files shown, then it should be right. Maybe using a third-party zip tool will help if macOS doesn't show zipped folders clearly.

  • That must be an old project, because it was removed from Construct 2 something like 10 years ago. The easiest thing to do is open the project in Construct 2, delete the WebStorage object from the project, save the project, open it in Construct 3, and then add the Local Storage object and add back any events that involved storage.

    • Post link icon

    It sounds like you have a use case that is significantly different to what the Multiplayer feature was designed for. Suppose someone came along with some complicated use case that, for whatever reason, involved a base64-encoded WebP image of their profile picture that had to be set as their alias. Should we increase the alias length to something like 64 KB to allow that use case? I think the answer is one of "work around it", "you shouldn't do that" or "it's not designed for that". Perhaps in your case you'd be better off using the WebSocket object and running your own custom service.

  • For a large project I would suggest saving it as a folder project and then using GitHub as source control. Using GitHub is typically used for teams, but even if you're a solo developer, it provides great tools like reviewing and reverting changes that can be really handy. It also acts as a cloud save service which means you can easily work on multiple devices and also acts as an additional cloud backup to help keep your work safe. And of course if you want to get anyone else involved, it's already set up for collaboration.

    • Post link icon

    I still don't see why you can't just send a message. Send what the alias would be when someone joins. That sounds like problem solved to me.

  • You can do this with the Windows WebView2 export option, which I'd recommend as NW.js is now deprecated. Start with the Camera input example, add the File System object, and you should be able to then save a snap to a folder like "<documents>" (see the File System documentation).

  • If you add object type (touch) to the multiplayer addon example, you will get a red screen error unconditionally.

    I tried this in both the latest stable release and latest beta release and it seemed to work fine for me.

    This is very common when people try to report issues to the forum like this, and it's why we've designed a bug report process and set of guidelines to make sure we can properly investigate reports, so please file an issue here following the guidelines.

Ashley's avatar

Ashley

Early Adopter

Member since 21 May, 2007

Twitter
Ashley has 1,447,510 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
  • x63
    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