ID:265379
 
I am here to discuse how you can defeat the tile on byond. Ok let me begin with the overlays list variable. It belongs to any atom. You can either add an icon,icon state, object's, or object types. But according to the /image object you can use them too right?

"Since overlays and images can each have their own additional displacements, this makes it possible to create visual effects that extend beyond the object's own cell in the turf grid, but which automatically move around with the object." - From Reference of pixel_x.

So this will defeat the grid graphically right? How ever these add graphics do not effect bump or view(ranging functions). Now what I would like to ask is this. So lets say you have a object /display which will be created every time you want to display some image outside your tile and you would change the pixel_x and pixel_y vars before you added them too the overlays list variable.

Would the overlay be deleted if I deleted the /display object? Im betting no, but how would you access the overlays list to delete that specific /display image. Would it have to be the same pixel_x and pixel_y vars? and Do those vars actually displace the image that amount when added as an overlay to another object?

Also what would take up more space or time creating a /display object or using the /image object? or maybe even the /icon object?

Now lets get into making added objects as vars for the other parts of say a mob. So we have a mob/player and he has a top body and a bottom body. Then we say we make the top body his main which will control the movement. So his top body will have a var/mob/player/bottom right?
*Im not too skill at this method so please provide more information on it*

Thats it for now, I want some feedback.
Green Lime wrote:

Now lets get into making added objects as vars for the other parts of say a mob. So we have a mob/player and he has a top body and a bottom body. Then we say we make the top body his main which will control the movement. So his top body will have a var/mob/player/bottom right?
*Im not too skill at this method so please provide more information on it*

I suggest you make the bottom part the main part and then add a head to the mob as an overlay by doing this:
var/obj/o=new
o.icon='blah.dmi'
o.icon_state="blah"
o.pixel_y=32
o.layer=MOB_LAYER+1
src.overlays+=o


I'm not sure if this is what you really want though.