Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tileset's features #17

Open
4 tasks
Siemienik opened this issue May 22, 2014 · 4 comments
Open
4 tasks

Tileset's features #17

Siemienik opened this issue May 22, 2014 · 4 comments

Comments

@Siemienik
Copy link

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)
@joafalves
Copy link
Owner

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.

@Siemienik
Copy link
Author

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

@joafalves
Copy link
Owner

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.

@Siemienik
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants