Wow, that's just amasing :) exactly what I have planed :D


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | public void setLocation( double x, double y) { exactX = x; exactY = y; super .setLocation(( int ) (x + 0.5 ), ( int ) (y + 0.5 )); } /** * Set the location using integer coordinates. * (Overrides the method in Actor.) */ @Override public void setLocation( int x, int y) { exactX = x; exactY = y; super .setLocation(x, y); } |