import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Knight1 here.
*
* @author (BradH)
* @version (a version number or a date)
*/
public class Knight1 extends GoodTroops
{private int Walk = (9);
/**
* Act - do whatever the Knight1 wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
move(2);
Walk -- ;
if(Walk == 0)
{
setImage("image-GoodKnight2.png");
}
hello, I am trying to get my Knight1 class to change the Image to GoodKnight2.png once walk==0; GoodKnight2 is an image I have uploaded into my project, previously have just been removing my knight1 class from the world and adding a new class that has the GoodKnight2.png image and then removing that class and getting knight1 to appear again to give it an animated look. The problem with that is I can not make A death Image because the classes get removed from the world everytime walk == 0; Back to my main question in the code above when I run the game an error pops up saying that it can not find image GoodKnight2.png which is the name of the image that I have uploaded into my project, why can't it find this image. Thanks for your time.

