Hi,
So I have this array
that I would like to be able to add to my DisplayText image whenever one of my door(image)s are pressed. How would I be able to do this?
The code for my DisplayText image is this:
String [] values = {"2", "3", "5", "8", "13", "21", "34", "55", "89", "144" };private String begin = " 1, 1";
GreenfootImage displaytext = new GreenfootImage (begin, 25, Color.BLACK, Color.WHITE);
public void act()
{
setImage (displaytext);
}
