How can I create a string in the same class as the object and have it overlay it's preset image.
I want to be able to change this value as well and have it update on the screen.
public Button()
{
GreenfootImage backImage = new GreenfootImage("Button.png");
GreenfootImage text = new GreenfootImage(445,390);
text.setColor(Color.CYAN);
text.drawString("Words",200,200);
text.scale(900,780);
backImage.drawImage(text,3,2);
setImage(backImage);
}GreenfootImage text = new GreenfootImage("Words", 24, Color.CYAN, null);
backImage.drawImage(text, 3, 2);