Advanced image question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
King_of_Dragons
Forum Newbie
Posts: 1
Joined: Tue Mar 25, 2003 12:48 am

Advanced image question

Post 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 :).
pootergeist
Forum Contributor
Posts: 273
Joined: Thu Feb 27, 2003 7:22 am
Location: UK

Post 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.
Post Reply