How to attach a sprite to a TMXTiledMap at a particular coordinate, in AndEngine?
Posted
by
shailenTJ
on Game Development
See other posts from Game Development
or by shailenTJ
Published on 2013-03-08T14:08:38Z
Indexed on
2013/11/04
10:21 UTC
Read the original article
Hit count: 390
I am trying to add a sprite at a "grid" location on the tiled map. The TMX tiled Map is like a grid, and you can access the size of the grid by calling mTMXtiledMap.getTileRows()
and mTMXtiledMap.getTileColumns()
.
I want to add an object at grid location, say (2, 5). My tileMap is of size (10,10).
How can I do that? There is no function like mTMXTiledMap.addChild(int x, int y, Entity mEntity)
.
I would appreciate any suggestions!
© Game Development or respective owner