Hello there!
I would like to create an image for an actor used to display a score.
Here is the code :
I did add the object in my world, but here is the picture I get :
What am I doing wrong?
Thanks for your help!
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
public class Stats extends Actor
{
public void Stats()
{
GreenfootImage im1 = new GreenfootImage(100,100);
im1.drawString("Tirs : 0",0,3);
im1.drawString(": 0",30,33);
im1.drawString(": 0",30,36);
im1.drawString(": 0",30,39);
setImage(im1);
}
}
What am I doing wrong?
Thanks for your help!

