ID:162253
 
i need help with coding in some multi tile icons. could someone explain to me how plz?
One word: Overlays
_____
| ABC|
| DEF|
| GHI|
------

Create objects for each of the tiles that the object will take up. Here's how you want to do it if "E" is your base character.
obj/LargerIconA
icon = 'LargerIconA.dmi' //if you have a seperate icon for the different part
icon_state='LargerIconA' //if you have it all in one icon file and have different state names
density = 1 //if this is going to be the leg area you'd want this part dense so it doesn't walk through things.
layer = MOB_LAYER+2 //puts the image on top of other things on the map
pixel_x = -32 //moves the image left 1 tile
pixel_y = -32 //moves the image down 1 tile

obj/LargerIconB
icon = 'LargerIconB.dmi'
icon_state = 'LargerIconB'
density = 1
layer = MOB_LAYER+2
pixel_y = -32 //no x because it's not moving left or right but y because it's still moving down

obj/LargerIconC
icon = 'LargerIconC.dmi'
icon_state = 'LargerIconC'
density = 1
layer = MOB_LAYER+2
pixel_x = 32
pixel_y = -32


Get it?

And to add the icons on you do this:
src.overlays += new/obj/LargerIconA


And so on. DO NOT MAKE ONE FOR "E"! Since E is YOU all you have to do is change that like normal.
it depends on like how you want it to work?
Spare wrote:
i need help with coding in some multi tile icons. could someone explain to me how plz?

hub://Shadowdarke.BigAtom should help you. The Dream Makers site has several tutorials on the subject.

-- Data