Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to rotate a sprite (smooth)?
- superfisher
-
Scratcher
20 posts
How to rotate a sprite (smooth)?
I am trying to rotate my sprite smoothly. Using the normal smoothing algorithm doesn't work since it can't tell the difference between -180 and 180 (They're the same).
Any way I can smoothly transition without it freaking out when pointing down?
turn cw (((67) - (direction)) / (5)) degrees
Any way I can smoothly transition without it freaking out when pointing down?
- Jareddddddd
-
Scratcher
1000+ posts
How to rotate a sprite (smooth)?
turn cw (((67) - ((direction) + (181))) / (5)) degreesthis was the closest I could get, I really dont like the rotations are -180 to 180
- Dahipuri
-
Scratcher
1000+ posts
How to rotate a sprite (smooth)?
I am trying to rotate my sprite smoothly. Using the normal smoothing algorithm doesn't work since it can't tell the difference between -180 and 180 (They're the same).Hi you can use this script if you want whole rotation or change repeat timeturn cw (((67) - (direction)) / (5)) degrees
Any way I can smoothly transition without it freaking out when pointing down?
repeat (720)
turn cw (0.5) degrees
wait (0.001) secs
end
- deck26
-
Scratcher
1000+ posts
How to rotate a sprite (smooth)?
https://scratch.mit.edu/projects/55006278 might help
- Discussion Forums
- » Help with Scripts
-
» How to rotate a sprite (smooth)?