In my Scenario, I Need to drag objects, while the game runs…
Itried this:
...but it does not work. When I try to drag the mouse, it teleports anywhere, but not at the mouse's Position (!)
if(Greenfoot.mouseDragged(this)) { try { setLocation(m.getX(),m.getX()); }catch(Exception e){ } }