SimonN / LixD

Lix: Lemmings-like game with puzzles, editor, multiplayer
https://www.lixgame.com
132 stars 16 forks source link

Editor moves hatch on flip if selboxXl % 2 != 0 #273

Open SimonN opened 6 years ago

SimonN commented 6 years ago

Lix 0.9.5

Consider Raymanni's Holiday hatch raymanni/holiday/hatch.H that I will include in the next version. This is a gridded gadget image with each cell 64x64 pixels, very good. The game computes the selbox, which is the smallest rectangle that encompasses all opaque pixels across all frames. This selbox seems to be odd-width-ed.

Open editor. Put hatch in level. Select hatch. Horzflip this selection of 1 tile.

Expected: Hatch stays in place and flips direction. Observed: Hatch moves leftwards and flips direction.

SimonN commented 3 years ago

The bug exists, but the title and descriptions are likely wrong.

The bug manifests when the selbox is not centered in the image.