Gibbo2D
Gibbo2D copied to clipboard
Tileset's features
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)
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.
Tileset's move doesn't work. Thanks for the response, and no problem.
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.
Nothing is translating in my gibbo(any tiles, any tilesets).