Page 1 of 1

Advanced image question

Posted: Tue Mar 25, 2003 12:48 am
by King_of_Dragons
I am currently making an rpg program in php. I want the characters to be displayed as an image, which is the combination of overlapped images. For instance, let's say I have 6 images:

body
armor
helm
pants
weapon
shield/secondary weapon


the player chooses which 6 images to use and now they need to be combined into one image (in a specific order of course, the body would be at the bottom, covered by the others, so they overlap right). Also, they need to overlap transparently, so you can see the completed character when it is done.


Any help would be GREATLY appreciated :).

Posted: Tue Mar 25, 2003 5:34 am
by pootergeist
certainly can be done and would work quite well with GD2+, though is going to a bit of a resource hog unless you handle the creations very well.

I've been working on a colourized overay script that ummm colourizes grayscale parts of a tank image and assembles nicely. Sounds like your idea would just be an extension of that, with or without the colouring bit - "I want a green shield ;) "
Unfortunately my host is fubar'ing for http requests at the moment so I cannot show you a sample. If you use MSN, sling pootergeist [at] hotmail [dot] com in and I'll link you a localhost version.