If I wanted two objects to switch positions with each other, what kind of code would be needed for that?
if(Greenfoot.mouseClicked(Jewel.class))
{
int firstX = getX();
int firstY = getY();
if(Greenfoot.mouseClicked(this))
{
setLocation(firstX,firstY);
}
}