TypeScript coding in Construct (updated)

Поделиться
HTML-код
  • Опубликовано: 26 дек 2024

Комментарии • 5

  • @PavelKostenko
    @PavelKostenko 3 месяца назад

    Thanks for this amazing introduction. It's great that Construct3 supports TypeScript and there is an easy way to setup you project to use TypeScript with just a drop-down menu on the Scripts item in the project

  • @CineTekDev
    @CineTekDev 4 месяца назад

    Important to note and it took me a while to figure this out: Even though you are coding in typescript, ALL the import statements MUST reference the .js modules otherwise the compiled javascript files are not able to read/access them! To me this was not obvious and I felt like it would make more sense if you code in typescript only and use .ts imports which are then converted to .js imports automatically (But I am new to typescript so maybe that is obvious?)

  • @chunchunmark6715
    @chunchunmark6715 5 месяцев назад

    Is there a way to make any script the main script, so that don't need to connect all scripts to main.js to get things like init and tick?

    • @construct
      @construct  5 месяцев назад +1

      In Construct, you can only set one main script. If you need to load another script, just import it in the main script.