Hello, I want to change the image of the actors according to the levels how can I do that ?
I try this but didn't work:
private GreenfootImage pike1 = new GreenfootImage("Pike1.gif"); private GreenfootImage water = new GreenfootImage("Water.gif"); public void image() { if (Level == 1 || Level == 2 || Level == 3) { setImage(pike1); } else if (Level == 4 || Level == 5 || Level == 6) { setImage(water); } }