so I've been looking online and it doesn't have a tutorial on how to use flags in greenfoot and I'm trying to do the Greeps competition.. I need to set a flag at the tomato piles but i'm not sure how to do it. PLEASE HELP!!
GreenfootImage img = new GreenfootImage("Name of picture"); // Tomato
img.drawImage(img, x ,y); // replace x and y with coordinates
GreenfootImage im = new GreenfootImage("Name of picture"); //Flag
img.drawImage(im, x, y); //set x and y so it fits with tomato
setImage(img);