Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Slowing It Down
- jkwieicien2861
-
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
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
-
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
-
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.
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
-
1000+ posts
Slowing It Down
I cannot test it properly, as i am using a tablet.
Add wait blocks:
Add wait blocks:
if <key [left arrow v] pressed?> thenEdit: ninja'd
walk (-90) (4) ::custom
next costume
wait (0.1) secs
end
Last edited by awesome-llama (Nov. 20, 2016 01:27:46)
- mstone326
-
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/
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)
- Mini_Man2013
-
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
-
1000+ posts
Slowing It Down
Please try to avoid necroposting. This topic is old. I might like this onewhen green flag clicked
forever
repeat (3)
turn cw (3) degrees
repeat (3)
turn ccw (-3) degrees
end
end
- Mini_Man2013
-
100+ posts
Slowing It Down
Then
Try some Tutorials to start building!
Search by Clicking Me!
when green flag clicked
turn (4) direction slows
Try some Tutorials to start building!
ask [Can You Search?] and wait
Search by Clicking Me!
- Nezon
-
1000+ posts
Slowing It Down
Please create your own topic, and please don't necropost. idk how to do it help me plz
- Discussion Forums
- » Help with Scripts
-
» Slowing It Down