Hey everyone, I was just wondering for a potential multicart project:
How would I pass data from one cart to another, mainly a base cart for things like high score or level unlocks?
Thanks in advance.



The most straightforward way is to use cartdata()
, dset()
and dget()
; so long as two carts share the same cartdata ID, they share the same storage space.
If you need more than 64 numbers or if you want to pass larger amounts of nonpersistent data, you can use peek()
and poke()
to write directly to general memory: the range between 0x8000 and 0xffff persists so long as PICO-8 is running, meaning anything you write there will be accessible by other carts that get loaded in during runtime.
[Please log in to post a comment]