I implemented GIF images in my knight class for running and staying idle, but the frames seem to overlap until the end of the loop instead of changing.
Here is the code for the animation method I made for easy utilisation:
and here is the recording: https://youtu.be/Db9PNOrelzA
public void anim(GifImage gif)
{
setImage(gif.getCurrentImage());
}
