Hey I know this has probably been asked a bajillion times, but I’m having trouble figuring out how to export / save a texture to disk as an image (any image type will do, as long as it can be loaded later), from a stand alone executable.
I did spend a long time on the forums looking for the answer and I found bits and pieces that don’t quite come together for me yet, and there wasn’t any real example in the manual or script reference, which suggests that its something fundamental involving the language that I somehow missed learning.
If I understand correctly, I believe I have to use System.IO.Filestream somehow, but this isn’t something I’ve learned in javascript, and I’ve managed to fail at finding that in my resource books, and google is beating around the bush.
I have a thin bar image that I change the pixels on, relative to gameplay. When the game is saved, this bar needs to be saved as is, also, for later loading.
I understand if I save it to my resources folder it’ll be easy to load; it’s the saving that I suddenly realized I don’t know how to do.
Any help would be appreciated, even if its a point to one of the million forum posts that solved this. Sorry, and thank you!
P.S. I’m generally ok at dissecting examples; so even a snippet of code saving something would be fine.