Discuss Scratch
- Discussion Forums
- » Bugs and Glitches
- » GIF imports get jumbled
- lock_door
-
Scratcher
90 posts
GIF imports get jumbled
My browser / operating system: Windows NT 10.0, Chrome 106.0.0.0, No Flash versions detected
When I do a gif import, it jumbles up a little bit (example: example1, example3, example2, etc…)
When I do a gif import, it jumbles up a little bit (example: example1, example3, example2, etc…)
when green flag clicked
if <not <(costume name:: looks)= (join [example] (costume #))> > then
say [Bug in scratch!]
end
- Flowermanvista
-
Scratcher
1000+ posts
GIF imports get jumbled
This is a known issue with GIF importing. In my experience, you can work around this by importing the GIF as a new sprite, rather than importing it into an existing sprite. Frankly, I'm amazed that they still haven't fixed this after at least 2 and a half years.
Alternatively, you can use this:
Alternatively, you can use this:
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.
- Discussion Forums
- » Bugs and Glitches
-
» GIF imports get jumbled