Hey there, I have a little problem.
I'm a newbe in programming, so this probably a very simple problem, but it would be great if you could help me ;).
At the end of my Game, there is a Game Over screen which shows the time the player "survived".
Of course this isn't the real code how I did it, I just copied the important lines.
Everything works fine, but I'd like to change the colour of the text and if possible also the fond and it seems that Google isn't my friend in this case ;) Thanks it advance for your help and sorry if my english isn't perfect ;)
startTime = System.currentTimeMillis();
endTime = System.currentTimeMillis();
totalTime = endTime - startTime;
World myworld = getWorld();
GreenfootImage picture1 =new GreenfootImage("gameover.jpg");
int m=(int)(totalTime/1000)/60;
int s=(int)(totalTime/1000)-(m*60);
picture1.drawString(""+m+" minute(s) and " + s +" second(s)",110,280);
myworld.setBackground(picture1);