[Tileset - Collision Bounds - Create a Box...] bug

YellowAfterlife

  • Posts: 13
Problem: it is not possible to have a rectangle 'touching' right edge of tile when creating one through 'Create a Box...' dialog in 'Collision Bounds' panel of 'Tileset' editor.
Example:
Quote
X Position: 50%
Y Position: 0%
Width: 50%
Height: 100%
Is not possible to create - X Position will be set to 49%, producing a small seam.
Bottom edge 'behaves' fine.

Hectate

  • *
  • Posts: 4643
I believe that the values are pixels, not percentages. With images, the first pixel is always 0, so a 50 pixel wide image is numbered 0 to 49.

Unless I'm missing something, I'm not in SW right now...
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

Greg

  • *
  • Posts: 1260
The GUI does show % values, so there may be an inconsistency.  Seems like this is a valid bug

Alexin

  • *
  • Posts: 3132
Shapes for tiles are defined in percentage, to accommodate for different tile sizes. Internally, the dimensions range from 0.0 to 1.0.
"Find the fun"
alexin@stencyl.com

Greg

  • *
  • Posts: 1260
This one should be fixed for the next build.

Jon

  • *
  • Posts: 17524

« Last Edit: June 07, 2011, 08:47:59 am by Jon »