im a newvie to java and i read your chapter 9 of the java by example tutorial. i scrolled down to see how moving sprite animation was done. i couldnt understand how to change the animation from image to image becuase i saw six dogs on the dog animation and it said: dog = new Image[6]; so i tried making my own animation sequence using a different picture with 5 animation phases and i changed the number to '5' but that didnt work. But then u scrolled down and it said:

//this sets the animation phases
//you can determine the speed of the phases change here


and that didnt have any sixs there and the applet works still.....thats when i got confused