ID:173979
 
is there an easy way to the obj the same size as it's icon?
I'm not exactly sure what you mean., but I'm guessing that it is something along the lines of wanting to make objects take up less than a full tile (for purposes of pixel movement, and calculating density)...

In which case, there is no way to do it (at least not the way you're hoping for)... All objects take up the full tile that they are located in, regardless of how big or small the icon is... And this can't currently be changed...
In response to SuperSaiyanGokuX (#1)
No, I ment if I use a .gif that in 64x64 how can I easily make it take up 4 squares?
In response to DarkCampainger (#2)
Overlays with pixel offsets is the best way to go...

One of the 4 tiles will be the actual object, and the other three are overlays that are given pixel_x and pixel_y values that will make them display in the correct places...

1 2
M 3

M is the mob, and the 1,2,3 are the overlays... These overlays can't just be added as icons, you need to code objects for each of them, and add the object as the overlay...

As I mentioned, you need to use the pixel_x and pixel_y variables to do this...
obj
overlay1
icon_state = "whatevericonstateforthispiece"
pixel_x = 0
pixel_y = 32
overlay2
icon_state = "whatevericonstateforthispiece"
pixel_x = 32
pixel_y = 32
overlay3
icon_state = "whatevericonstateforthispiece"
pixel_x = 32
pixel_y = 0

mob
New()
..()
overlays += new/obj/overlay1
overlays += new/obj/overlay2
overlays += new/obj/overlay3


What pixel offsets do is tell the program how far in pixels away from the base object to display the icon... pixel_y is up and down along the y axis, and pixel_x is along the x axis (obviously)... For example, to display the icon one tile above the mob, a pixel_y value of 32 is needed (32 pixels higher than the mob)...

In my code example above, the pixel offsets of 0 (in overlay1 and overlay3) aren't necessary to put in, but I put them in for the sake of illustration...

Anyways, that's pretty much how to do it... Any number can be used for pixel offset values, and not just multiples of 32... Negative values can also be used, and these move the icon in the opposite direction (a negative pixel_y will display the icon lower than the object)...

One thing to remember about this is that the three overlay parts will not be dense, and aren't used for any calculations of the location of the object... Only the actual object is used...

There is currently no way to just extend the size of an object itself... Only ways of making the object look bigger graphically...

You can also make multi-tile mobs by creating more than one mob and sticking them together (when the master mob moves, all connected parts move with it) but this is rather shaky, and tends to screw up...