Page 1 of 1

Editor elements' "tile_size" problem

Posted: Sat Aug 13, 2016 11:54 am
by Eizzoux
Maybe it's not a bug, but it really makes a problems for customizing an editor. I just want to change the sizes of elements from editor's palette slots from 16x16 (as default) to 40x40 (needed size). But when I wrote this:

Code: Select all

editor.palette.element_left.tile_size:     40
editor.palette.element_right.tile_size:    40
editor.palette.element_middle.tile_size:   40
editor.palette.button.width:               40
editor.palette.button.height:              40
...I've got them only in size '32x32'. What's the problem? Is that a size limit for palette slots?

Re: Editor elements' "tile_size" problem

Posted: Wed Aug 24, 2016 5:46 pm
by Holger
Unfortunately, there is only support for the values "16" and "32" for ".tile_size" for the elements on the palette buttons in the editor. (Values of 32 or larger will result in 32x32 button elements, other values will result in 16x16 button elements.)

For element sizes during gameplay, also other tile sizes are supported, though...

Re: Editor elements' "tile_size" problem

Posted: Sun Oct 30, 2016 8:36 pm
by Eizzoux
Holger wrote:Unfortunately, there is only support for the values "16" and "32" for ".tile_size" for the elements on the palette buttons in the editor. (Values of 32 or larger will result in 32x32 button elements, other values will result in 16x16 button elements.)

For element sizes during gameplay, also other tile sizes are supported, though...
Oh, well. Will you add more supported values for editor tile sizes? Or is this nearly impossible?

Re: Editor elements' "tile_size" problem

Posted: Mon Oct 31, 2016 4:00 pm
by Holger
It is possible, of course, but I cannot see a need for it at the moment. Sizes like 8x8 and smaller would be too small, and sizes like 64x64 and larger seem to be a bit too large (as probably too few editor elements would be on the screen for serious level editing).

EDIT: And support for "odd" sizes like 40x40 would indeed need some additional changes, as the game internally scales tiles to power-of-two sizes at the moment.