ID:155201
![]() Aug 20 2011, 12:50 pm
|
|
I wasn't sure what to search for to find an answer for this. I'm setting an icon of an object, during run time, to an icon that is 100x100 but it's stretching the icon to 32x32. How can I get it to keep the size 100x100?
|
I have been using the scale function. I use scale to make an icon 100x100(There is a BYOND bug causing it to go 128x128) then I draw on it and set an icon to it. Here is a code snippet with notes:
//world maxx and maxy are 100 The icon saves just fine except that the picture of the 100x100 map is drawn on an icon that is 128x128. The numbers continue to screw up if I scale the icon to a different size. They seem to only screw up to multiples of 32 or at least in the tests I've run. |
It sounds like you have world.map_format set to TILED_ICON_MAP.
When the map is set to that format, the game automatically breaks icons into chunks of world.icon_size. (It also makes a small thumbnail to fit the icon_size as well.) It's worth giving this a read. |
Format: Scale(width, height).