1
vote
1answer
325 views

How to match user click and the sprite object position in libGDX framework

I am using libGDX Java framework for developing a practice game in Eclipse. My game is in landscape mode and I am using sprite image for game assets. Actually I am trying to follow the Kilobolt ...
4
votes
1answer
331 views

2d coordinates vs x/y screen positioning

I have a 2d top-down view tile map game, that generates random color tiles (water colors) as you move the character. I've been positioning elements on screen using the x/y coords (finding a way to ...
1
vote
1answer
262 views

Precise Touch Screen Dragging Issue: Trouble Aligning with the Finger due to Different Screen Resolution

Please, I need your help. I'm trying to make a game that will drag-n-drop a sprite/image while my finger follows precisely with the image without being offset. When I'm trying on a 900x1280 (in X ...
3
votes
3answers
3k views

Java Slick2d - How to translate mouse coordinates to world coordinates

I am translating in my main class render. How do I get the mouse position where my mouse actually is after I scroll the screen public void render(GameContainer gc, Graphics g) throws SlickException ...
2
votes
2answers
157 views

Transition Player Position

I'm currently working on a Java MMO with a pretty solid start, but I've come across an issue I need a little help with. I'm working on player positions. Meaning their X/Y on the screen, if the ...
4
votes
1answer
628 views

Most efficient way to handle coordinate maps in Java

I have a rectangular tile-based layout. It's your typical Cartesian system. I would like to have a single class that handles two lookup styles Get me the set of players at position X,Y Get me the ...