Sorry, I'm just using text.class as an example. Use "yourActor'sNameWithTheCounter.class"
if(System.currentTimeMillis() > start) { long timepassed = ((System.currentTimeMillis() - start) / 10); }
String s = Long.toString(timepassed); GreenfootImage img = new GreenfootImage(s,12,Color.black,Color.blue); setImage(img);
import java.awt.Color;