Discuss Scratch

softballandme
Scratcher
17 posts

How to Animate

I need help!! How do i animate smoothly and clearly.What block(s) do I need??Would you like me to explain what i'm making??
AHypnoman
Scratcher
1000+ posts

How to Animate

softballandme wrote:

Would you like me to explain what i'm making??

Yes - it would help if you specified what kind of animation you mean: is it a transition animation or like a video?
softballandme
Scratcher
17 posts

How to Animate

Yes
codeywhizz
Scratcher
100+ posts

How to Animate

That is not clear what you are saying yes to
C0000lguy
Scratcher
100+ posts

How to Animate

There are a few approches to smooth animation:
glide (1) secs to x: (0) y: (0) //This will let you go to a spot without snapping

set [easing v] to (0)
repeat until <(x position) > (200)>//This will give you an ease in effect. The "200" is the position you want to go (make sure to change the ">" sign)
change [easing v] by (1) //This is how quickly you want to ease
change x by (easing)
end

repeat (50)//This will give you more of an ease out effect.
change x by (((100)-(x position))/(8))//The "100" is the position you want to go to, and the "8" is how much you want to ease.
end
softballandme
Scratcher
17 posts

How to Animate

Oh sorry for not specifying. VIDEO to be clearer do your codes still work on my video??
han614698
Scratcher
1000+ posts

How to Animate

softballandme wrote:

(#6)
Oh sorry for not specifying. VIDEO to be clearer do your codes still work on my video??
No that code wouldn't work. Basically you just have to have a bunch of costumes and then use this code:
when gf clicked
forever
next costume
wait (0) secs
end
The wait block is optional but I like to add it because it gives a more realistic delay (1/30th sec) and leads to less costumes.
fluffykittenfluffy
Scratcher
9 posts

How to Animate

I’m not sure if you mean animating using scratch blocks or costumes. If you mean costumes, you need make a sprite and draw something. then duplicate the costume and move the drawing (in any way / change the drawing or something) and repeat until you want it to stop. and you can use this code:
when green flag clicked
switch costume to [ v]
forever
next costume
wait () secs
end

hope this helps!

(Switch costume to costume1)

Last edited by fluffykittenfluffy (Aug. 29, 2024 10:49:27)

mayhemabe1
Scratcher
12 posts

How to Animate

softballandme wrote:

I need help!! How do i animate smoothly and clearly.What block(s) do I need??Would you like me to explain what i'm making??
Normally when you animate something in scratch, you have costumes for each frame and then something like:

when green flag clicked
switch costume to [ First]
repeat (?)
next costume
wait (0.2) secs
end
Like the other reply said, the wait is optional. Also I'm not sure if you can straight up add a video. You'd need to make a costumes for every frame. Also, you can switch the repeat for a forever if you want that looping animation.

Last edited by mayhemabe1 (Aug. 29, 2024 11:41:01)

FlyingPatrol05
Scratcher
3 posts

How to Animate

Can someone please teach me how to use My Blocks? I know what they do and how to use them, but I see people using them like it will say “Animate, then it will be an empty slot with numbers” Please explain The example is down below. Please explain what to put in the empty spots
define ()      

Powered by DjangoBB