Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » Turn Block Timing
- Mahoroa
- Scratcher
6 posts
Turn Block Timing
Hello! I am creating a Kirby fangame, and I am making Paper Mario-esque graphics that are composed of multiple layered sprites.
I want to perfectly synchronize the x/y movement of a sprite with the rotation of another, so I want to know how much time it takes for a sprite to rotate 1 degree using the turn block. Thank you in advance.
I want to perfectly synchronize the x/y movement of a sprite with the rotation of another, so I want to know how much time it takes for a sprite to rotate 1 degree using the turn block. Thank you in advance.
- Bright-Idea
- Scratcher
1000+ posts
Turn Block Timing
Please remember to only bump every 24 hours! Thanks!
I’m Back!
- jokebookservice1
- Scratcher
1000+ posts
Turn Block Timing
Forgetting about turbo mode, it should take 1/30th of a second to turn any amount using a forever loop like: Hello! I am creating a Kirby fangame, and I am making Paper Mario-esque graphics that are composed of multiple layered sprites.
I want to perfectly synchronize the x/y movement of a sprite with the rotation of another, so I want to know how much time it takes for a sprite to rotate 1 degree using the turn block. Thank you in advance.
foreverHope this helps!
turn cw (1) degrees
end
- Mahoroa
- Scratcher
6 posts
Turn Block Timing
Well…
Here is my current Kirby sprite. The body, face, arms, and feet are all separate sprites.
http://i1352.photobucket.com/albums/q653/Mahoroa/ksprite_zps7gwxwukf.png
This script controls the arms. They wave back and forth.
http://i1352.photobucket.com/albums/q653/Mahoroa/armscript_zpsqm2yqkwr.png
This controls the feet.
http://i1352.photobucket.com/albums/q653/Mahoroa/footscript_zpsgwdml0ah.png
I want to make the arm and foot animations last the same amount of time per loop.
I'm not sure how to synchronize them, however.
Here is my current Kirby sprite. The body, face, arms, and feet are all separate sprites.
http://i1352.photobucket.com/albums/q653/Mahoroa/ksprite_zps7gwxwukf.png
This script controls the arms. They wave back and forth.
http://i1352.photobucket.com/albums/q653/Mahoroa/armscript_zpsqm2yqkwr.png
This controls the feet.
http://i1352.photobucket.com/albums/q653/Mahoroa/footscript_zpsgwdml0ah.png
I want to make the arm and foot animations last the same amount of time per loop.
I'm not sure how to synchronize them, however.
- Mahoroa
- Scratcher
6 posts
Turn Block Timing
Hm. Never mind, I did the timing calculations and now it works! Thanks!
Looks like I inadvertently gave out a teaser for my new game…
Looks like I inadvertently gave out a teaser for my new game…
- jokebookservice1
- Scratcher
1000+ posts
Turn Block Timing
Based on my calculations, the foot script needs a single frame refresh more: Well…
Here is my current Kirby sprite. The body, face, arms, and feet are all separate sprites.
http://i1352.photobucket.com/albums/q653/Mahoroa/ksprite_zps7gwxwukf.png
This script controls the arms. They wave back and forth.
http://i1352.photobucket.com/albums/q653/Mahoroa/armscript_zpsqm2yqkwr.png
This controls the feet.
http://i1352.photobucket.com/albums/q653/Mahoroa/footscript_zpsgwdml0ah.png
I want to make the arm and foot animations last the same amount of time per loop.
I'm not sure how to synchronize them, however.
wait (0) secsseconds.
That should make each forever loop last the same amount
- Discussion Forums
- » Questions about Scratch
- » Turn Block Timing