This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Suggestions
  •  » Turn (a time) seconds to direction (a direction) block suggestion

#1 2012-04-21 13:42:41

TheCoolDog
Scratcher
Registered: 2011-01-29
Posts: 18

Turn (a time) seconds to direction (a direction) block suggestion

turn [1] secs to direction (90 v) //This would be useful for smooth turning


-TheCoolDog-

Offline

 

#2 2012-04-22 18:59:57

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: Turn (a time) seconds to direction (a direction) block suggestion

but you would need clockwise and couterclockwise.
This isn't easier, but you can do this:

repeat [100] times
 turn cw [1] degrees
 wait [0.01] seconds
end
 
This causes it to rotate 100 degrees in one second. You can change the repeats to owever many degrees away your current positionis from your desired position.

Anyway, I do support the idea  smile ---I just wanted to point out another solution.


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#3 2012-04-22 19:19:14

Mokat
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: Turn (a time) seconds to direction (a direction) block suggestion

mythbusteranimator wrote:

but you would need clockwise and couterclockwise.
This isn't easier, but you can do this:

repeat [100]
 turn cw [1] degrees
 wait [0.01] secs
end
 
This causes it to rotate 100 degrees in one second. You can change the repeats to owever many degrees away your current positionis from your desired position.

Anyway, I do support the idea  smile ---I just wanted to point out another solution.

Scripts fixed.

Last edited by Mokat (2012-04-22 19:19:44)


http://www.eggcave.com/egg/977371.pnghttp://www.eggcave.com/egg/977376.pnghttp://www.eggcave.com/egg/1005291.pnghttp://www.eggcave.com/egg/996745.png

Offline

 
  • Index
  •  » Suggestions
  •  » Turn (a time) seconds to direction (a direction) block suggestion

Board footer