say like i make a custom character. the head files are named like myhead1.png, myhead2.png, myhead3.png, etc... and each of these files are arranged like this format:
http://i34.photobucket.com/albums/d1...crobo/head.png
then i make custom bodies in similar format as head files. I load all the head and body parts into graalshop and they appear on the left hand side of the screen.
I'm having trouble figuring out how to do a sethead, setbody, etc... in game using my own custom character.
Here's what I'm guessing i would have to do using ATTR such as:
ATTR[1] for hat
ATTR[2] for head
ATTR[3] for body
ATTR[4] for shield
so say like for the head, i edit the gani script and do:
DEFAULTATTR2 myhead1.png
,then for each body part, i would do:
SPRITE 400 ATTR2 0 0 30 30 head
SPRITE 400 ATTR3 0 0 30 30 body
and then in the game, i would just do:
player.attr[2] = "myhead1.png"; // or whatever head i want to use
Is my assumption correct or how do you guys recommend i do this?? thanks.