Dru's Recent Forum Activity

  • Same here - 2 landscape monitors on Windows 11. All screens always open in the main display regardless of where they were when they were closed.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ah ok I just assumed Construct would compile any .ts file at preview or build time so I wasn't running the vscode compiler.

    I was using the Construct editor up till now but I want to use AI to speed things up!

    Thanks for clearing that up.

  • Is anyone finding .ts files created in VScode don't show in the C3 editor? I have to create them in C3 and then edit in VSCode.

    I wonder if it's because of TypeScript type definitions?? Though not sure why they can't be updated when the C3 editor picks up new files.

    .js files do show however which would make sense.

    • I have converted my project to TypeScript and setup TypeScript for external editor.
    • I've also used the Reload From Folder option.
    • The .ts files were created in the script folder alongside main.ts (and they show in windows file explorer).

    Everything else with scripting works fine.

  • Sure there's a workaround but then you lose the benefits of the "Wait for previous action".

    On larger projects its a bit convoluted that way.

  • In the screenshot below the txtColor text object gets overwritten by the Fruit events sitting underneath.

    https://drive.google.com/file/d/1FZL6qycbhlWBnPdjcxS79SyVCYRxqRHP/view?usp=sharing

    Shouldn't they be independent? Unless I'm misunderstanding how "Wait for previous actions to complete" works?

  • Ashley

    The new features added to the Pin behaviour are great but I was thinking as well as the "Destroy with pinned object" checkbox you could have a similar thing for object visibility. If the object its pinned to is made invisible then do the same to the pinned object.

    I use Pins a lot with UI and it would simplify the code for toggling the visibility of parts of the UI.

  • Any reason why I can't disable scripts in the event sheet? Like how I can disable regular events.

  • Thanks for the help that works well, I didn't think to use position absolute to drop another canvas on top.

  • Does anyone know if it's possible to use Chart.JS with the new scripting tools?

    The bit i'm having trouble with is creating a Canvas element to draw the chart to, I just don't know where to create this html element or how it interacts with the C3 app itself.

    <canvas id="myChart" width="400" height="400"></canvas>

    I know there's a Drawing Canvas plugin but how to access that through code?

    Any ideas?

  • You can do this with JavaScript, use the Browser object and the Execute JavaScript action

    "select.options[2].style.color = 'red';"

    or background color

    select.options[2].style.backgroundColor = 'red';

    You'll need to give your list object the ID of 'select' which is in the properties panel. And then just swap the [2] for whichever list item you want to change.

  • Ah ok thanks so there are a couple of options to get around this. Either using physics or manually pushing the object out of the solid as it moves.

    It seems strange that while pathfinding finds paths around solids the object you then set to move along the path completely ignores solids.

  • Does anyone know why in this simple pathfinding demo the black square crosses over the ends of the red object when trying to move around it?

    Does pathfinding not use the objects collision polygon?

    https://www.dropbox.com/s/h3uamm9f9x34ydt/Pathfinding%20test.capx?dl=0

Dru's avatar

Dru

Member since 14 Jul, 2012

None one is following Dru yet!

Trophy Case

  • 12-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies