Graal Forums  

Go Back   Graal Forums > Development Forums > Gani Construction
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-18-2007, 04:22 AM
Cherrykao Cherrykao is offline
Banned
Join Date: Apr 2007
Posts: 37
Cherrykao is on a distinguished road
custom characters

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.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:00 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.