Discuss Scratch

Niklassen
New Scratcher
15 posts

My GIF animation is stuttering/flickering like crazy.

I have a school project where i am going to crate a game in scratch. I plan to make a donkey kong country like game, meaning lots of 3D visuals.

My only option for good animated 3D visuals are GIFs. I made my intro screen now, which is a GIF animation with 600 frames, 30 FPS. Whenever i play a GIF, it flickers like crazy. This means that it constantly goes back and fourth randomly, you could call it stuttering as well. There are no problems when playing the GIF on anything but scratch. I tried to lower the frame rate to 10 FPS, meaning 200 frames, but it got even worse.

This happens when both having the GIF on backgrounds or sprites.

Any suggestions on making the GIF you know… play like normal? The game will consist of mostly animated GIFs, so if it continues like this i must scrap everything.
Oumuamua
Scratcher
1000+ posts

My GIF animation is stuttering/flickering like crazy.

From where you got that GIF?
Niklassen
New Scratcher
15 posts

My GIF animation is stuttering/flickering like crazy.

Oumuamua wrote:

From where you got that GIF?


I make them myself i blender. There's nothing fancy about it, only a normal GIF.

Last edited by Niklassen (April 4, 2020 22:05:02)

Oumuamua
Scratcher
1000+ posts

My GIF animation is stuttering/flickering like crazy.

Niklassen wrote:

Oumuamua wrote:

From where you got that GIF?


I make them myself i blender. There's nothing fancy about it, only a normal GIF.

Since it is going * it can´t be so normal as you say…
Oumuamua
Scratcher
1000+ posts

My GIF animation is stuttering/flickering like crazy.

There are out there some online converters, try it.
fdreerf
Scratcher
1000+ posts

My GIF animation is stuttering/flickering like crazy.

Could you share the project with us so we may take a look at it?
It may be a user-end thing.
Niklassen
New Scratcher
15 posts

My GIF animation is stuttering/flickering like crazy.

GIFs are confusing… i guess i will just have to experiment with some software. It now plays smoothly, but at wrong speed.
Niklassen
New Scratcher
15 posts

My GIF animation is stuttering/flickering like crazy.

fdreerf wrote:

Could you share the project with us so we may take a look at it?
It may be a user-end thing.

All these are too big to be uploaded on scratch. I must do it with scratch desktop.
TheSassyDiamond
Scratcher
100+ posts

My GIF animation is stuttering/flickering like crazy.

Niklassen wrote:

GIFs are confusing… i guess i will just have to experiment with some software. It now plays smoothly, but at wrong speed.
If it plays smoothly but at wrong speed, that mean in the code you need to add this block:

when green flag clicked
forever
wait (0.5) secs
next costume
end

or in the block ‘Wait __ seconds’ you can change that to a different amount of seconds to change the speed.
Hope this helped!

Last edited by TheSassyDiamond (April 4, 2020 22:54:16)

Niklassen
New Scratcher
15 posts

My GIF animation is stuttering/flickering like crazy.

I do think what you said will work, but then it will only change frame every 0,5 seconds. Not acceptable for a video that should be playing at 30 frames per second.

I think i managed to solve it. Just don't use GIFs. I just had all the 600 frames of the video in a folder, and imported them all in one sprite. It now plays at 30 FPS perfectly, since 30 FPS is maximum at scratch anyway.

Come to think of it.. max scratch resolution is 480x360 at 30FPS. That is quite primitive. They should seriously consider escaping from the 90s and upgrade this.
Niklassen
New Scratcher
15 posts

My GIF animation is stuttering/flickering like crazy.

I have an update, TheSassyDiamond.

I also tried what you suggested. In a 30 FPS video, the frame changes every 0,0333 second. I tried to type that in the block, but that didn't work. Maybe the decimals are too exact.

Still, managed to get it working using the 600 individual frames, as mentioned last post.

Last edited by Niklassen (April 4, 2020 23:34:03)

fdreerf
Scratcher
1000+ posts

My GIF animation is stuttering/flickering like crazy.

wait ((1) / (30)) secs
Niklassen
New Scratcher
15 posts

My GIF animation is stuttering/flickering like crazy.

Tried that too, fdeerf. Was smooth, but stuttered like crazy.

Maybe scratch just doesn't play nice with GIFs. Using individual images is much better.
Monna-Uka
Scratcher
1000+ posts

My GIF animation is stuttering/flickering like crazy.

Niklassen wrote:

I have an update, TheSassyDiamond.

I also tried what you suggested. In a 30 FPS video, the frame changes every 0,0333 second. I tried to type that in the block, but that didn't work. Maybe the decimals are too exact.

Still, managed to get it working using the 600 individual frames, as mentioned last post.
Well… If Scratch itself runs at 30 FPS then why don't use
Wait (0) secs
to wait an exactly frame, then go to next costume?
kittydab960
Scratcher
23 posts

My GIF animation is stuttering/flickering like crazy.

Flickering happens to me, from time to time. I think decimals are too precise, what I do is just
when green flag clicked
forever
forever
next costume
end
end
Ninjagofan99
Scratcher
2 posts

My GIF animation is stuttering/flickering like crazy.

This has happened to me a lot so just try a new project until it is not flickering.
Hakikiman
Scratcher
19 posts

My GIF animation is stuttering/flickering like crazy.

Niklassen wrote:

I do think what you said will work, but then it will only change frame every 0,5 seconds. Not acceptable for a video that should be playing at 30 frames per second.

I think i managed to solve it. Just don't use GIFs. I just had all the 600 frames of the video in a folder, and imported them all in one sprite. It now plays at 30 FPS perfectly, since 30 FPS is maximum at scratch anyway.

Come to think of it.. max scratch resolution is 480x360 at 30FPS. That is quite primitive. They should seriously consider escaping from the 90s and upgrade this.

Wait a minute… I have the same problem as you, for a Pokémon intro. To fix this, do I have to add every slide individually by myself?
supercrusher22
Scratcher
24 posts

My GIF animation is stuttering/flickering like crazy.

Same happens to me. For some reason GIFs with lots of frames happen to do this for me. But it goes back and fourth to the last few frames then keeps going and repeats this until it gets to the end of the GIF. I don't know how to fix it either.
games2scratch
Scratcher
2 posts

My GIF animation is stuttering/flickering like crazy.

I have the same problem as well.
Does anyone know how to fix this?


 [] 
The_Game_
Scratcher
1000+ posts

My GIF animation is stuttering/flickering like crazy.

games2scratch wrote:

I have the same problem as well.
Does anyone know how to fix this?


 [] 
Please make your own post instead of posting on old topics.

Powered by DjangoBB