This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-04-24 03:20:26

Rikihiro
New Scratcher
Registered: 2013-04-24
Posts: 7

How to get animated gif to work in Scratch

I'm working on a project, with many animations. I created several animated gif files but when I load them into Scratch I only see the first frame.

How do I code Scratch to let the animation run. Some of the animation have more than 40 frames. It would be tedious to change them manually.

Any help would be grateful. 

Thank you all for your replies.

Offline

 

#2 2013-04-24 07:14:16

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: How to get animated gif to work in Scratch

Rikihiro wrote:

I'm working on a project, with many animations. I created several animated gif files but when I load them into Scratch I only see the first frame.

How do I code Scratch to let the animation run. Some of the animation have more than 40 frames. It would be tedious to change them manually.

Any help would be grateful. 

Thank you all for your replies.

Unfortunately, Scratch doesn't fully support .gif's in their native format, and so to work around this, you'll have to split each .gif into their respective frames. Then, you'll need to import all of them into a spite as costumes (keep their previous order), and afterwards, you should only need the [next costume] block to run your animations/.gifs.

I hope that this helps! Also, hello Rikihiro and welcome to Scratch! I wish you a great stay here!

With regards,

ErnieParke

Last edited by ErnieParke (2013-04-24 07:14:49)


http://i46.tinypic.com/35ismmc.png

Offline

 

#3 2013-04-24 08:25:11

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: How to get animated gif to work in Scratch

If you drag an animated GIF into a Scratch costume, it *should* split the animation into separate frames for you (one frame per costume).  That being said, I have heard of people having trouble with it and only getting a single frame or all the frames superposed on top of each other.  Before you do a lot of work manually splitting them, you might try running them through a GIF editor like GIMP and see if what it outputs is any friendlier to Scratch.  Good luck!


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#4 2013-04-24 08:30:21

dsaztur
Scratcher
Registered: 2012-06-13
Posts: 100+

Re: How to get animated gif to work in Scratch

Rikihiro wrote:

I'm working on a project, with many animations. I created several animated gif files but when I load them into Scratch I only see the first frame.

How do I code Scratch to let the animation run. Some of the animation have more than 40 frames. It would be tedious to change them manually.

Any help would be grateful. 

Thank you all for your replies.

Use the import button below the stage.
Import the selected animated gif.


http://i43.tinypic.com/14slmx.png

Offline

 

#5 2013-04-24 13:44:13

cobraguy
Scratcher
Registered: 2009-11-18
Posts: 100+

Re: How to get animated gif to work in Scratch

I usually save the .gif to my desktop, or somewhere I know where it is, I open scratch and create a new sprite (just a black dot), I go to the sprite's costumes and drag the .gif straight in. Then delete the black dot costume.


Fruit Fighter, when your food eats you.
http://i.imgur.com/8CR6Lnj.png?1

Offline

 

#6 2013-04-24 21:17:25

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: How to get animated gif to work in Scratch

Paddle2See wrote:

If you drag an animated GIF into a Scratch costume, it *should* split the animation into separate frames for you (one frame per costume).  That being said, I have heard of people having trouble with it and only getting a single frame or all the frames superposed on top of each other.  Before you do a lot of work manually splitting them, you might try running them through a GIF editor like GIMP and see if what it outputs is any friendlier to Scratch.  Good luck!

Oh.... I had never known that. Well, this might be helpful in the future in one of endeavors. As the saying goes, "We catch a new fish every day."

With regards,

ErnieParke


http://i46.tinypic.com/35ismmc.png

Offline

 

Board footer