I was thinking if we could generate instances from icon_states in TOPDOWN_MAP(in the MAP editor).(in the same way as icon_states() generates in TILED_ICON_MAP).
Not clear?
for example- I have a 64x64 icon.And my world.icon_size is default.Now If I generates icon_states from 64x64 icon, I should get like.(0,0; 1,0; 0,1; 1,1).. the same way as we are provided with in the icon_states().
Hope thats clear...
ID:96340
Jun 3 2010, 7:07 am (Edited on Jun 3 2010, 7:22 am)
|
|||||||
Not Feasible
| |||||||
I don't think you fully understand the difference between the two formats.
When TILED_ICON_MAP is used, all icons are interpreted in a chunked manner. Icons bigger than world.icon_size are split into pieces. When TOPDOWN_MAP is used, no icons go through this chunking process; they all use their own innate size. The feature you're asking for would be meaningless with TOPDOWN_MAP because those icon states would simply not exist at runtime. |
It would also be nice, if you provided the same for TILED_ICON_MAP, but I don't know why.