Discuss Scratch

jkwieicien2861
Scratcher
7 posts

Slowing It Down

Hey everyone!
How do I slow down my sprite's animation for moving so it doesn't look silly, yet isn't too fast. Here is the project, simply press the left or right arrow.
https://scratch.mit.edu/projects/129961068/#player
asivi
Scratcher
1000+ posts

Slowing It Down

Remove the next costume blocks you have and do :
when [any v] key pressed
if <<key [right arrow v] pressed?> or <key [left arrow v] pressed?>> then
repeat until <not <<key [right arrow v] pressed?> or <key [left arrow v] pressed?>>>
wait (0.1) secs//here the delay you like
next costume
end
switch costume to [Gorilla1_Left v]
end
astroglider661
Scratcher
100+ posts

Slowing It Down

I see your problem, and I know how you can slow it down.

Harambe is only switching from 1 costume to another costume repeatedly, what you should do is make more costumes, then it will switch through more costumes and go slower.
awesome-llama
Scratcher
1000+ posts

Slowing It Down

I cannot test it properly, as i am using a tablet.
Add wait blocks:
if <key [left arrow v] pressed?> then
walk (-90) (4) ::custom
next costume
wait (0.1) secs
end
Edit: ninja'd

Last edited by awesome-llama (Nov. 20, 2016 01:27:46)

mstone326
Scratcher
1000+ posts

Slowing It Down

When I animate a sprite I create a variable called (spritename)Frame. Then, depending on how many different animations the sprite has, I change costume by (spritename)Frame. When you push an arrow key you could change (spritename)Frame by a decimal, ex. .65, and if (spritename)Frame > (your last costume), set (spritename)Frame back to 1. That way there are no delays with wait blocks.

Here is an example of a custom block that handles the Duck's animations with duckFrame.
https://scratch.mit.edu/projects/108361157/#editor

I remixed Harambe with varaible Harambe Frame. There are some issues as pressing right and left at same time. But wanted to show another quick option for animation.
https://scratch.mit.edu/projects/131849984/

Last edited by mstone326 (Nov. 20, 2016 01:42:49)

ggcuriel
New Scratcher
1 post

Slowing It Down

omg thank you that helps
Mini_Man2013
Scratcher
100+ posts

Slowing It Down

I might like this one
when green flag clicked
forever
repeat (3)
turn cw (3) degrees
repeat (3)
turn ccw (-3) degrees
end
end

Last edited by Mini_Man2013 (Oct. 29, 2020 11:33:57)

deck26
Scratcher
1000+ posts

Slowing It Down

Mini_Man2013 wrote:

I might like this one
when green flag clicked
forever
repeat (3)
turn cw (3) degrees
repeat (3)
turn ccw (-3) degrees
end
end
Please try to avoid necroposting. This topic is old.
Mini_Man2013
Scratcher
100+ posts

Slowing It Down

Then
when green flag clicked
turn (4) direction slows

Try some Tutorials to start building!

ask [Can You Search?] and wait

Search by Clicking Me!
sherayarera
Scratcher
1 post

Slowing It Down

idk how to do it help me plz
Nezon
Scratcher
1000+ posts

Slowing It Down

sherayarera wrote:

idk how to do it help me plz
Please create your own topic, and please don't necropost.

Powered by DjangoBB