GreenfootImage bitcounter = new GreenfootImage(30, 370);
bitcounter.drawString("Bits: "+bits, 0, 0);
The code i'm using doesn't work, it just creates the Greenfoot icon in the required place..


setImage(bitcounter);
public static int bits; public void act() { getImage().clear(); getImage().drawString("Bits: "+bits, 0, 16); }