ZeldaVerde's Recent Forum Activity

  • It is exactly the same error, but here you go: drive.google.com/file/d/1b-xocb2KfHf4UnULT8djQ7MeogYRCdWQ/view

    Do you also get the same error on your end? It seems like something related to my browser to me, idk.

  • So, I've created a new project. It won't give me errors anymore but now runOnStartup() just isn't called... What?

    Edit: It all appears to still come down to that "Failed to load resource: net::ERR_HTTP2_PROTOCOL_ERROR".

  • Am I dumb or is there no javascript gamepad plugin implementation done yet?

  • Thanks for the reply again Ashley. Yes, I was expecting construct to overwrite the js files and I had no idea I could just delete them from the project and have it compile them somewhere hidden. I was messing with the new built-in editor and trying to edit ts from construct, but I mainly use vs code and now can't figure out how to configure it to work with vs code handling the ts again.

  • My project is really minimal since I've just created it. Here it goes:

    drive.google.com/file/d/1b-xocb2KfHf4UnULT8djQ7MeogYRCdWQ/view

    I'm pretty sure the code is alright, and I'm so sorry for wasting your time if the problem is as simple as such an oversight from me.

  • Thank you for the response Ashley, but it did not work.

    To be clear, I am able to preview other projects.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've just created a new project and realized construct has a couple new options when right clicking the scripts folder, related to typescript. I suspect I'm misunderstanding them, because my main script will fail no matter what. I'm trying to use typescript, edited thru vs code (as I've been doing for a while). I'm getting this on the console:

    Failed to load resource: net::ERR_HTTP2_PROTOCOL_ERROR

    sw.js:617 [SW-Preview] Up to date

    bootPreview.js:105 Registered service worker on preview.construct.net

    domSide.js:1 Error loading project main script: Error: main script did not run to completion

    at r._InitDOM (domSide.js:1:12370)

    at async r._Init (domSide.js:1:8594)

    _InitDOM domSide.js:1

    webgpuRenderer.js:1 The powerPreference option is currently ignored when calling requestAdapter() on Windows. See crbug.com/369219127

    Tagged:

  • I couldn't find how to get/set tilemap as/from json thru script, does anyone know how? I feel like either tilemap is missing some scripting features or the tilemap scripting documentation is missing some features. I also couldn't find how to use brushes, if that is possible.

    Tagged:

  • So, I may be dumb (and that's why I figured I should post this here before filling out an issue report on github), but here goes a compilation of minor "issues", so to speak, I've been having with scripting:

    1. <IWorldInstance>.setAnimation("") is not recognized by the typescript definitions, and I therefore have to write (<IWorldInstance> as any).setAnimation("") for it to work.

    2. I could not find any documentation on accessing image points thru javascript/typescript. <IWorldInstance>.getImagePointX(<name or index>) won't compile because TS thinks it doesn't exist, but then again (<IWorldInstance> as any).getImagePointX(<name or index>) works fine. If anything, I think <IWorldInstance>.getPosition() should probably support image points as arguments.

    3. I could not find any documentation on using tilemap brushes thru script.

    Please tell me for which of those I'm just being dumb, for which I should file a bug report, and for which I should file a feature request.

    Thanks!

    Edit:

    Ok, I've just discovered that:

    1. setAnimation() and getImagepointX() are from the ISpriteInstance type.

    2. the method getImagePoint() gets both axis.

    Sorry for that

  • Oh ye that makes sense. I've just filed a bug report then. Hope you can fix it, and thank you as always.

  • Alright, thanks for the clarification Ashley!

  • Oh ok I will, I thought it might be a simple fix on my end so that's why I didn't.

ZeldaVerde's avatar

ZeldaVerde

Member since 11 Nov, 2018

None one is following ZeldaVerde yet!

Trophy Case

  • 7-Year Club
  • Forum Contributor Made 100 posts in the forums
  • 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
  • Email Verified

Progress

12/44
How to earn trophies