Gibbo2D icon indicating copy to clipboard operation
Gibbo2D copied to clipboard

Tileset's features

Open Siemienik opened this issue 10 years ago • 4 comments

Some very useful features

  • [ ] Translating Tilesets( move up, down, left or right).
  • [ ] Tileset's collision mapping(tool, where we can set, which tile have static body)
  • [ ] Tileset's clicked tile (which tile was clicked - now, it isn't huge problem and resolve its using gameinput).
var x = (int)GameInput.MousePosition.X + Mask.Width * TileSize / 2;
var y = (int)GameInput.MousePosition.Y + Mask.Height * TileSize / 2;
x /= TileSize;
y /= TileSize;
var hittedMask = Mask.Tiles[x, y];
  • [ ] Duplicate or Copy function( I've written about it)

Siemienik avatar May 22 '14 12:05 Siemienik

Translating Tilesets is already possible using the Editor and in the Scripts.

In the editor, in the tileset tab page there are icons that allow you to move the tileset into those directions you mentioned.

Collision mapping is in our TODO list. For now, we recommend to toggle snap to grid option and using the mouse to make a selection (make sure to press the left [Ctrl] Key from your keyboard while doing the selection to make it fixed).

Thanks for the input.

joafalves avatar May 22 '14 12:05 joafalves

Tileset's move doesn't work. Thanks for the response, and no problem.

Siemienik avatar May 22 '14 12:05 Siemienik

Translating Tilesets Tools may not work like you expect. The way that we have this implemented is that the tiles in the matrix get translated, not the tileset itself.

Try to add some tiles and use the tools to see what I mean.

joafalves avatar May 23 '14 11:05 joafalves

Nothing is translating in my gibbo(any tiles, any tilesets).

Siemienik avatar May 24 '14 10:05 Siemienik