Java, LibGdx - Checking if there is a Object at x,y on a MapLayer -


the tiledmaplayer has function getcell, looking similar maplayer. there way checking postion x,y object besides going through every object , calculating positions ?

objects have x , y properties, there no inherent way cell @ location. because maplayer contains objects, not appear in every tile on map, , can appear @ (x, y) coordinate. if using scene2d recommend turning map's objects actors, since objects on map not drawn maprenderer, have draw them yourself.


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -