Hello,
I've been assigned a task to design the classic Frogger game... http://www.happyhopper.org/ if you need a refresher.
My code doesn't work for my frog. The error is "illegal start of expression" and the coding is:
public void switchImage()
{
if (getImage() == image1)
{
setImage (image2);
}
else
{
setImage (image1);
}
}
}
If you need any more information, give me a buzz! Thanks!