JavaScript coding in Construct (updated)

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

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

  • @Marlin-Gamedev
    @Marlin-Gamedev 6 месяцев назад +3

    Excellent explanation! Thank you Scirra crew!

  • @LunaticEdit
    @LunaticEdit 6 месяцев назад +2

    Great tutorial video!

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

    I had trouble with the ShowMessage() example until I realized that I had to use the apostrophe (`) instead of a single quote ('). Otherwise very useful content.

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

      Yeah, it's an interpolated string. Pretty neat.

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

    16:11 In this code you showing use of keybord plugin functionality, but should I actually use those plugins like keybord and mouse, or just native JS event listeners like keydown/wheel, since they are probably more fast? Or am I missing something?

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

      Construct supports running the engine in a Web Worker for better performance characteristics. You can't use the usual keyboard and mouse events in Web Workers, so Construct has its own APIs to cover that. However you can use the usual native JS event listeners if you want, but it means your project can only run in DOM mode.

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

      @@construct Ah, I see, thank you for explanation!