Sorry, I'm just using text.class as an example. Use "yourActor'sNameWithTheCounter.class"


1 2 3 4 | if (System.currentTimeMillis() > start) { long timepassed = ((System.currentTimeMillis() - start) / 10 ); } |
1 2 3 | String s = Long.toString(timepassed); GreenfootImage img = new GreenfootImage(s, 12 ,Color.black,Color.blue); setImage(img); |
1 | import java.awt.Color; |