so what i'm trying to acomplish is to find out where the mouse is clicking, to do that i'm defining the mouse everytime it moves and i'm trying to find in which x,y it clicked, for some reason mouseClicked(null) does not trigger at all, i've tried spam clicking everywhere and i've even used an autoclicker to spam it a 100 cps
this is the strip of code
public void act() { if(Greenfoot.mouseMoved(null)) { MouseInfo Mouse = Greenfoot.getMouseInfo(); //System.out.println(Mouse); //this works if(Greenfoot.mouseClicked(null)) { System.out.println(Mouse.getX() + " | "+ Mouse.getY()); //this never prints } } }