Is there a way to run two pieces of code at the same time?
Thanks in advance :)
1
Pico-8 uses Lua, which is inherently single-threaded, so no.
That said, you can use coroutines to switch between the execution of two pieces of code, which mimics what actually happens if you try to run two pieces of code at the same time on a single processor (which pico-8 is emulating).
[Please log in to post a comment]