I am trying to create a loop that can be ran when called from a function, and will be broken from a user input from outside the function.
Any ideas?
Develop games in your browser. Powerful, performant & highly capable.
You can try something like this:
On function "StartLoop" -> Set runLoop to 1 Every X seconds compare variable runLoop=1 -> Do something On any key pressed -> Set runLoop to 0