First of all, hi, new here.
This doesn’t have to do with different origins in the coordinate systems (afaik), I already accounted for that.
A previous post on the issue. http://www.reddit.com/r/javahelp/comments/174i55/yaxis_movement_behaving_differently_from_xaxis/
The code. http://pastie.org/5894953
I’m using libgdx for this and it’s just an icon that you can move either by using your arrow keys or by holding down your mouse button. The problem is that when I use setPosition() in both movement-ways the function seems to add/remove a couple of pixels. I have printed the position before setting it and once I set it it doesn’t end up where it should be.
It’s as if when I use setPosition() it multiplies the Y-value by 1.1-ish in both ways I implemented it. I don’t have 1.1 (or any number like it) anywhere in the code and when I check the variable right before sending it to setPosition it is correct. Setting it to fullscreen didn’t help.