Discuss Scratch

NeverActive
Scratcher
77 posts

Gif uploaded in wrong order

My browser / operating system: Windows NT 10.0, Chrome 91.0.4472.106, No Flash version detected

I uploaded a gif, with 755 frames, I ran the gif on the scratch editor and it looked weird, I realised that a lot of frames were switched and out of order, I tried again, still was out of order, when I changed the name to a shorter name it still wasn't in order, I went on the actual gif and outside of scratch the frames were perfectly in order, if you know why this is happening please tell me

imagine::#0000ff
program::#00ff00
share::#ff0000
Flowermanvista
Scratcher
1000+ posts

Gif uploaded in wrong order

This is caused by a known issue with GIF importing that causes the frames to be out of order. In my experience, you can work around this by importing the GIF as a new sprite, rather than importing it into an existing sprite. More info can be found here.

Alternatively, you can use this:

CatsUnited wrote:

I've experienced this and I used an alternative way to fix the ordering - to use scripts to fix the ordering
When you import a gif (e.g funny-gif), all the frames come out as funny-gif, then funny-gif2, then funny-gif3 etc. Even if they are out of order, you can play the sequence in order by requesting the exact costume name rather than using “next costume”, like this:

switch costume to [funny-gif v]
set [frame v] to [1]
repeat (length of gif:: #969696)
wait (0) secs
change [frame v] by (1)
switch costume to (join [funny-gif] (frame))
end

Now the gif should be playing with every frame in the correct part of the sequence.
(Note that the following is my signature - it appears automatically below all of my posts. You can tell where a post ends and where a signature starts because there is a grey line separating them. You can put anything you want in a signature - including advertisements for your projects or forum topics. To get your own signature, follow the instructions here.)

Add a SPOOKY SKELETON to your project!

The Scratch 3 Project Save Troubleshooter - find out why your project won't save

ST, Please Add A Warning When A Size Limit Is Exceeded

My Dumb Creations - THE BEST ANIMATION | The Windows 98 Experience (made on Windows 98) | nobody cares about Me… | the2000 Reveals His New Profile Picture | Not Dumb Creations - Ten Years
Ctrl+Shift+Down for more…
Do evil kumquats keep eating your signature? Assert your dominance and eat the evil kumquats. Did you know that kumquats are only about the size of an olive?
NeverActive
Scratcher
77 posts

Gif uploaded in wrong order

Flowermanvista wrote:

This is caused by a known issue with GIF importing that causes the frames to be out of order. In my experience, you can work around this by importing the GIF as a new sprite, rather than importing it into an existing sprite. More info can be found here.

Alternatively, you can use this:

CatsUnited wrote:

I've experienced this and I used an alternative way to fix the ordering - to use scripts to fix the ordering
When you import a gif (e.g funny-gif), all the frames come out as funny-gif, then funny-gif2, then funny-gif3 etc. Even if they are out of order, you can play the sequence in order by requesting the exact costume name rather than using “next costume”, like this:

switch costume to [funny-gif v]
set [frame v] to [1]
repeat (length of gif:: #969696)
wait (0) secs
change [frame v] by (1)
switch costume to (join [funny-gif] (frame))
end

Now the gif should be playing with every frame in the correct part of the sequence.
(Note that the following is my signature - it appears automatically below all of my posts. You can tell where a post ends and where a signature starts because there is a grey line separating them. You can put anything you want in a signature - including advertisements for your projects or forum topics. To get your own signature, follow the instructions here.)

thank you

imagine::#0000ff
program::#00ff00
share::#ff0000

Powered by DjangoBB