Hi guys,
Is there anyway to script for a smoother rotating motion using scratch for second life?
At the moment, the rotating motion is very jolty.
I require a way of making my object rotate a certain angle in a certain amount of time.
At the moment my scratch blocks look like this
when i am touched repeat (10) roll (5) degrees wait (0.1) seconds endThank you
Offline
If you need to rotate "d" degrees in "s" seconds, you can use this script:
when gf clicked // or whatever set [d v] to (90) // 90 degrees set [s v] to (3) // 3 seconds reset timer repeat until <(timer) > (s)> turn ccw ((timer)*((d)/(s))) degrees endAlso, to change the direction of rotation, you can drag out the other rotate block (with the clockwise arrow).
Last edited by Hardmath123 (2012-06-09 05:12:50)
Offline
What do you mean by second life? I can tell you where they all are though, they are all color coded. On the tab to go to their section, they have that color next to it, so use that. The orange ones are variables, you will have to make a variable before you can use those blocks.
Offline
sonicfan12p wrote:
What do you mean by second life?
+1
Is it an operating system or a browser?
Offline