This is my code:
It doesn't play the animation. I'm sure I wrote the filename correctly and it's been properly imported. Then if I try to re-compile or reset, it prints a message: "Constructor of the world is taking a long time...." I need to re-open my greenfoot to compile it. Yet the animation still wasn't played.
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Stickman here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Stickman extends Global
{
private GifImage Img = new GifImage("stickman.gif");
/**
* Act - do whatever the Stickman wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
if (!IsJumping)
setImage(Img.getCurrentImage());
}
}


