I am new to java and I was wondering how you would put theobject that is calling the getClicked() method into the parameter.
Example:
public class Player{
if (Greenfoot.getClicked( this object){
player = selected
}
}
I have a way of doing this, but it is not efficient. I was wondering if there is a short syntax that can be used. Thanks!