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
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?)
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
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?)
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?
In Construct, you can only set one main script. If you need to load another script, just import it in the main script.