I am curretly trying to make an avatar creation script. This will allow the user to select multiple changes, such as hair, eyes, outfit etc. Can anyone give me some advise on what to use. I ahve heard that GD libaray it one of the best to use and if so can someone show me an example of how you could do it.
Thanks in advance
GD and Ready made images
Moderator: General Moderators
I have never done anything like this before, but I have seen something similar.
Basically, make partially transparent images of the different components, be they gif or png files shouldn't matter.
Then, when a user chooses their body parts, you can programmatically add those particular parts to particular pixel co-ordinates in the final image. You'll have to determine the pixel co-ordinates beforehand.
Basically, make partially transparent images of the different components, be they gif or png files shouldn't matter.
Then, when a user chooses their body parts, you can programmatically add those particular parts to particular pixel co-ordinates in the final image. You'll have to determine the pixel co-ordinates beforehand.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.