LibGDX: How to make tiled map tiles clickable?
问题 How can I add click listeners for the tiles from tiled map so that when you select a tile with the mouse it becomes highlighted? 回答1: That's not supported directly by libGDX as the TiledMap stuff is only for rendering. You could easily create a Stage though, which will act as some kind of overlay-input-layer for your TiledMap. Just create an Actor for each tile which has the same size as position as that tile. Then you are able to add EventListener s to those actors to be able to recognize