Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2012
    Posts
    1
    Thanks
    0
    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.

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,456
    Thanks
    8
    Thanked 1,084 Times in 1,075 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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •