I have a question about Gif images. I'm trying to make game, there is a thing that when I click the mouse, then the Gif image starts moving. Here is my code, when i click mouse, the image isn't moving.
public void act()
{
if(Greenfoot.mouseClicked(this))
{
setImage(img.getCurrentImage());
}
}