I want to make it so that my world image is a gif but I have no idea how to do so, I have tried adding in this
but it says "cannot find symbol- class GifImage" on both "GifImage"s on this line in particular
What am I doing wrong here?
1 2 3 4 5 6 7 8 9 10 | GifImage gifImg = new GifImage( "giphy.gif" ); public void gifAnimation() { setBackground(gifImg.getCurrentImage()); } public void act() { gifAnimation(); } |
1 | GifImage gifImg = new GifImage( "giphy.gif" ); |