I don't know if this is a limitation of byond. If I use either single icon states and put them together in code or use a single icon size greater then 32x32 and the total size becomes 5 or more tiles, the icon will not show properly. Either the tiles past 5 will show up in the wrong location or just not show up at all. I'm not making moving objects with the overlays, just mobs that remain motionless on the screen until they are deleted.
I use a process for setting the locations of the overlays based on how 3.0 used to split icons into states like "0,0","0,1","1,0" with "0,0" being the actual mob and the rest overlays.
This is easy to reproduce, just use an icon state that's pixels are bigger then 128x128.
(This doesn't feel like it should be in Developer How-To, but I'm hoping someone has found a way around this issue.)
ID:160085
![]() Nov 20 2008, 11:57 am
|
|
![]() Nov 20 2008, 12:37 pm
|
|
The pixel_x and pixel_y variables are limited to -127 to 128, which is about four tiles around the center. The only way to get around this limitation is by creating something five tiles away and giving it the extra overlays.
|