If I have a tilemap with each tile 16x16 (solid) and I want, when the bullet collides with tile - the tile (1 block) should be destroyed (erased), not the whole tilemap
Develop games in your browser. Powerful, performant & highly capable.
I´m having a hard time with this same problem.
How did you finally solved it?
you should trigger erase tile at x.y of actor or mouse or where collision is
What gamecorpstudio said. But you have to divide either the mouse position by the size of the tile or the object position by the size of the tile.
https://dl.dropboxusercontent.com/u/128 ... index.html
What about Tilemap.PositiontotileX(Sprite.X)? instead of percise numbers? If you change the tile size you have to rewrite it. Additionally you can even add SnapX.
Radiowaves That may work it was a rough throw together. Can't say until I test it. I didn't get an opportune chance to fully evaluate all of the Tilemap offerings