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

2017/3/14

.gif-c200

Kagz Kagz

2017/3/14

#
Hi guys, I've just started using greenfoot and I'm having an issue trying to get my gif to move in my world. Its a .gif-c200 image that im trying to upload and run. For some reason its not working, anyone have any suggestions? public class ZeroSlash extends Actor { GifImage myGif = new GifImage("ZeroSlash.gif-c200"); /** * Act - do whatever the ZeroSlash wants to do. This method is called whenever * the 'Act' or 'Run' button gets pressed in the environment. */ public void act() { setImage(myGif.getCurrentImage()); } }
Super_Hippo Super_Hippo

2017/3/14

#
Try to remove the -c200 from the file name and from the line of code.
You need to login to post a reply.