I have a question about the reload() function
this function allows you to load a region of data from the original cartridge, or another cartridge, into memory.
Now reading from wiki: "If the optional filename argument is provided, reload() will attempt to load from that cartridge file, which does not need to be the currently loaded cartridge. You can use this to store large amounts of game data over multiple cartridges."
I want to load a data from another cartridge, but it isn't posible to load a data using bbs id or filename when uploaded to bbs.
What I should do to make possible to load data from another cartridges using reload()?
(Sorry fo bad english)
Yes you can, @Lolscope.
In fact you can read graphics from another cart entirely using this:
Where you are working on a cart called
cart1.p8 and want to import the graphics of nearby
That command above will import the graphics for
cart2.p8 and allow you to use its sprites while you are running your code.
When your code stops, however, everything is back where it belongs, where
cart1.p8 sprites are back.
Experiment with this command and
Be sure to look them up and their usage HERE:
Okay, thanks for splitting out the use of reload() function
But I have a little different question about using it in practice (when the cart is loaded into bbs)
Because I tried to use this function to load a sprite data from Snowcatcher (using the filename with .p8.png format), but when I tested this cartridge loaded into bbs, it failed.
What I should do?
[Please log in to post a comment]