Ashley's Recent Forum Activity

  • It's not leg number 6, it's the child at index 6, which is of the leg object type.

    If that counted as leg 1, and there was also an arm 1, then the array of child instances would have two different instances at the same index, which doesn't make sense. Hierarchies have a single array of all children for each parent, not a separate array of children per child object type.

  • I'm not sure what you're trying to achieve - in CSS you can use --construct-scale, and in JavaScript it seems you can use the ILayer property renderScale, which works in both DOM and Worker mode. Doesn't that cover all cases?

  • That's because you're calling getAt() on the object type, not the instance. I'd suggest re-reading part 11 of the tutorial series - it covers all this.

  • If you intend to refer to a Construct object, you need to use runtime.objects.ObjectName. This is covered in part 11 of the 'Learn JavaScript in Construct' tutorial series.

  • Where is there a variable that declares ARRAY_TotalDLs?

    There doesn't seem to be one. That's why it's not working.

  • It's not yet supported in the Addon SDK v2 - it's on the list to get implemented soon though. I think this is also a good case to redesign the API so you don't have to write so much code to make a looping condition.

  • It's not possible to tell without seeing all your code. It means that variable is undefined though. You need to declare variables before using them - Construct does not declare anything for you (other than occasionally passing 'runtime' and 'localVars'). If you are getting stuck on things like variable declarations I would recommend going through the tutorial course Learn JavaScript in Construct which covers that.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Does the ILayer renderScale property do what you need?

  • Please refer to the Forum & Community guidelines. We don't have forum signatures. Everything posted should be at least vaguely connected to game development. I suppose you could post a thread like "what coffee best helps you to do game development", but that would likely involve mentioning brands or otherwise promoting commercial entities which may be construed as spam, and that type of thread tends to be a spam magnet as well as all the bots pile in to post their own links, so I don't think that would be appropriate to discuss on our site. Anything else actually meaningfully related to game development is OK though.

  • A fundamental limitation of the web platform is web workers can't access the DOM directly. In worker mode Construct runs in a web worker and so there is no direct access to the DOM - internally it works around that with lots of message passing.

    If you write JavaScript code in a project, worker mode "auto" defaults to DOM mode to avoid this problem. If you have set worker mode to "yes" to force running in a worker, but you need to access the DOM, set it back to "auto" or "no".

  • It's up to the receiving app what it does with the shared data. A quick test showed a text-only share worked with WhatsApp and email for me, but not with Twitter. If a particular receiving app doesn't do anything with the share, then it's that app that needs updating - the browser is using the standard system share feature.

  • Just write it like you would for any other web content:

    	const response = await fetch("file.json");
    	const myJson = await response.json();
    	console.log("Fetched JSON: ", myJson);
    
Ashley's avatar

Ashley

Early Adopter

Member since 21 May, 2007

Twitter
Ashley has 1,423,661 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