Hello again,
This time, I'm having problems with texts on background, and wanted to know if it's possible to add new lines whenever needed?
Something like this:
Currently, all it does is write it like this:
public void Title()
{
setImage("fltroad.png");
GreenfootImage title = getImage();
title.drawString("First Line \n" +
"Second Line\n" +
"Third line\n" +
"Fourth line", 5, getImage().getHeight()/2);
}First lineSecond lineThird lineFourth line
while I need it like this:
First line
Second line
Third line
Fourth line
I was thinking to add a new text, and space it vertically between them, but surely there must be an easier option!
Thanks in advance!!!
