Page 1 of 1
GD and Ready made images
Posted: Mon Jun 04, 2007 5:29 pm
by zell11
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
Posted: Mon Jun 04, 2007 5:38 pm
by pickle
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.
Posted: Mon Jun 04, 2007 5:46 pm
by zell11
cheers for your answer. would i use imagecopy() i take it
Posted: Mon Jun 04, 2007 5:53 pm
by pickle
Probaby - sounds about right.
Posted: Tue Jun 05, 2007 6:21 am
by zell11
got it working, Thanks a lot for your help