Roshan123 wrote...
Here it goes
public class GameOver { GifImage gifImg = new GifImage("gameover.gif"); public void act { setImage(gifImg.getCurrentImage()); } }
public class GameOver extends Actor
import greenfoot.*;
public class GameOver extends greenfoot.Actor