I am working on a Construct program that includes some open source Javascript code. (To communicate with a Bluetooth device.)
Part of the open source Javascript code runs in a loop every 100ms. What would be the best way to do this using Construct?
Should I create a loop in Construct that calls the Javascript code every 100ms? Would this be reliable, or would the timing get off?
Alternately, is there a way to do the looping in Javascript while Construct is still running?
Here is how the Javascript code is structured:
const timer = window.setInterval(()=> {
(code...)
}, 100);