Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / save image question

Author
Message
Xykotyk
21
Years of Service
User Offline
Joined: 26th May 2005
Location: New Hampshire
Posted: 9th Dec 2005 05:39
i want to make a character maker for a 2d game, i want to be able to select what color hair, eyes, clothes, etc. if i load everything from separate files, when all is said and done, is there any way to save it all as one jpg?

Next time you do that i'm gonna cut off your wee wee, and put it on some bread and feed it to kitty....
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 9th Dec 2005 22:18
Yes... but you don't want to use .jpg. .jpgs change the colors so you never see the original image again. Is this for a character that has one graphic or a character that needs to be changed for every single frame of animation?


Xykotyk
21
Years of Service
User Offline
Joined: 26th May 2005
Location: New Hampshire
Posted: 9th Dec 2005 22:28
good question, lets just say, one graphic

Next time you do that i'm gonna cut off your wee wee, and put it on some bread and feed it to kitty....
TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 10th Dec 2005 18:56 Edited at: 10th Dec 2005 18:58
Divide the image into a grid of equal rectangles, each one the same size and big enough to hold the largest graphic.

In your program, load the image into a hidden bitmap and use a nested For..Next loop to grab the contents of each 'cel' on the grid.

Can't give you the exact code required as it depends on the size of your images, but it would be along the lines of:



Once in separate images, you can delete the bitmap and use them for whatever.

TDK_Man

Xykotyk
21
Years of Service
User Offline
Joined: 26th May 2005
Location: New Hampshire
Posted: 11th Dec 2005 01:22
thx, i appreciate this alot.

Next time you do that i'm gonna cut off your wee wee, and put it on some bread and feed it to kitty....

Login to post a reply

Server time is: 2026-06-12 23:25:33
Your offset time is: 2026-06-12 23:25:33