bak 2 Share Posted January 6, 2019 Is it possible to get the X,Y coordinates of a gameObject or NPC on the screen? Link to comment Share on other sites More sharing options...
jarred788 9 Share Posted January 7, 2019 ya you should be able to easily. Not sure what these return but they sound like what you are looking for. yourObject.getLocalY() yourObject.getLocalX() yourObject.getGridX() yourObject.getGridY() https://dreambot.org/javadocs/ look at api under gameobjects. Link to comment Share on other sites More sharing options...
Xephy 237 Share Posted January 7, 2019 Both of the things you've listed fall under the Entity parent class. You can call Entity#getTile#getX or getY accordingly to be given the proper X and Y coordinate. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.