Page 1 of 1

Dumb question? Dumping graphics into save files?

PostPosted: Tue Jul 05, 2005 2:19 pm
by BeyondtheTech
I am really enjoy the saveVars/loadVars command as it is easily able to pass data between programs so easily. I was wondering if it was possible to dump a graphic or animation using the saveVars command, or even music.

One idea is this: let's suppose I have a game that has a "face maker" feature, much like some EA Sports games where you can "create a player." You can draw it (or draw on it) or assemble from different pieces (nose, eyes, brows, chin, lips, accessories such as hat, glasses, etc.). You can then save it (with the saveVars) command and send that file over to someone else so they can load it.

There are a few more uses to this theory, like breaking the game executable into game and data. It may take less time to load, or make it possible to move the data to another portion on the Pocket PC.

Is this at all possible?

PostPosted: Wed Jul 06, 2005 12:51 am
by makslane
Is not possible, sorry

PostPosted: Wed Jul 06, 2005 2:38 am
by willg101
So you can't save what's on a canvas actor, either?

PostPosted: Wed Jul 06, 2005 12:01 pm
by makslane
No :oops:

PostPosted: Thu Jul 07, 2005 2:52 am
by Fuzzy
Not directly; but you can write the pixel data to a text file, using the PPM format then use an external file converter to change it to png or whatever. Its a text editor based format. Ultra simple! look at this site!

http://www.physics.emory.edu/~weeks/graphics/mkppm.html
and here
http://netpbm.sourceforge.net/doc/ppm.html