This site requires JavaScript, please enable it in your browser!
Greenfoot back
Karsten
Karsten wrote ...

2019/4/29

Implementation of Gifs

Karsten Karsten

2019/4/29

#
Hey there, I want to implement a Gif. Therefore, I declared a GifImage in my Actor class and set it to my .gif Image:
GifImage gifImage = new GifImage("mygif.gif");
Then, I implemented this code in the act() of my actor:
setImage(gifImage.getCurrentImage());
There is a Animation but the single pictures of my running character start overlapping (first 2 legs, then 4, then 6 etc.). How can I fix this? Thanks for your answer :)
danpost danpost

2019/4/29

#
You will need to provide more code. The full class of the actor and possibly your World subclass as well.
You need to login to post a reply.