Discuss Scratch

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.
Mahoroa
Scratcher
6 posts

Turn Block Timing

bump
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

Mahoroa wrote:

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.
Forgetting about turbo mode, it should take 1/30th of a second to turn any amount using a forever loop like:
forever
turn cw (1) degrees
end
Hope this helps!
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.
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…
jokebookservice1
Scratcher
1000+ posts

Turn Block Timing

Mahoroa wrote:

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.
Based on my calculations, the foot script needs a single frame refresh more:
wait (0) secs
seconds.

That should make each forever loop last the same amount
Mahoroa
Scratcher
6 posts

Turn Block Timing

Thank you again!

Powered by DjangoBB