ID:158827
 
So i have this Aura for DBZ but its 2 tiles. How would i code that o.o
If for example if its 2 tiles tall, you can do something like this (I'm kind of new but got this to work at one point, hope I'm not forgetting anything)


var/image/top
icon = 'Auras.dmi'
icon_state = "bottom half"
top = image( icon=icon, icon_state="top half", layer=MOB_LAYER + 1 ) // Top half of aura being in same dmi
top.pixel_y = 32 // To set it up a tile if tiles are 32x32
overlays += top // Check overlays in help for more info maybe


You'll need to have your own .dmi file name and own icon_state names, the rest should be fine as it is. This assumes that the bottom will be the thing itself, if this isn't what you want this should work, adding the top and bottom halves of an aura to something.

var/image/top
top = image( icon='Auras.dmi', icon_state="top half", layer=MOB_LAYER + 1 ) // Plus 1 for over character, minus 1 for under I'm quite sure
top.pixel_y = 32
overlays += top

var/image/bottom
bottom = image( icon='Auras.dmi', icon_state="bottom half", layer=MOB_LAYER + 1 )
overlays += bottom