(Redirected from Eng:Motor On for () Secs (block))
|Turn Motor On for () Secs|
Prior to Scratch 2.0, this block was named Motor On for () Secs.
|Please expand this article or section. You can help by talk page.if you are an editor. More information might be found in a section of the|
Instead of continuously turning on the motor, waiting a certain amount of seconds and turning it off, this block can be used.
Some common uses for the Turn Motor On for () Secs block:
- Temporary motor movement
when gf clicked turn motor on for (2) secs
- Controlling how far vehicles move
when gf clicked turn motor on for (0.5) secs
- Keeping a fan on for a limited amount of time
when gf clicked turn motor on for (60) secs
- Main article: List of Block Workarounds
The block can be replicated with the following code:
turn motor on wait (number) secs turn motor off