Skip to content

[GREENFOOT-786] Mouse clicking on actors in worlds with large cells is not working

If you have a scenario with a cell size larger than one, e.g. the wombats scenario, Greenfoot.mouseClicked(this) and similar methods are not working correctly. The issue seems to be that the mouse coordinates are translated wrongly -- if you click in cell e.g. 8,8 it seems to register as a mouse click on pixel 8,8 on the world side, so most clicks are getting translated into a click within the top-left cell.


Issue metadata

  • Issue type: Bug
  • Priority: Medium
  • Fix versions: 3.5.1