Log In  

Is there a way to run two pieces of code at the same time?
Thanks in advance :)

P#135581 2023-10-07 15:03 ( Edited 2023-10-07 15:07)

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).

P#135582 2023-10-07 15:28

@kimiyoribaka Ok, thanks :)

P#135585 2023-10-07 17:04

[Please log in to post a comment]