Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
08-13-2012, 11:24 AM #1
- Join Date
- Aug 2012
- Thanked 0 Times in 0 Posts
Is it possible to make this kind of Character system on my own forum?
Hey guys, is it possible that I find a picture of a character, and make every members have this same character appearing as their picture. And then I'll set up an online shop on the forum, where there are lots of different costume and accessories (just pictures) for the members to choose from. Then using the points they earned from The Points System to exchange/buy those stuffs from the shop and actually be able to put it on their character. Please tell me how if it's possible.. I would really appreciate it. Like, dress up their character the way they want to. I really wanna do this.
08-13-2012, 08:35 PM #2
- Join Date
- Jun 2003
- Cottage Grove, Minnesota
- Thanked 1,089 Times in 1,080 Posts
You'll need a bunch of .gif images of the character and the clothes.
The background on all of them will be white (transparency color), and
the images will all be the same size. Basically, what the script can do
is "overlay" one on top of the other. Each image adds (or overlays) over
the basic character body as the bottom image. Each piece of clothing
is placed on the white image so it matches-up with the character's body.
They can be layered so that you put them on in a certain order. Any
part of the images that are "white" will show whatever is underneath,
as "white" is your tranparent color.
I think you can use either GIF or PNG, as they both allow transparencies.
GIF is probably easier to work with, but has limited colors. You can't use JPG/JPEG.
PHP (the GD library) will add one over the other, or multiple images and create
one GIF image to output to the browser. It's sort of creating a watermark, if you
wish to Google it: PHP GD overlay gif images
Last edited by mlseim; 08-13-2012 at 08:38 PM.