I think that Scratch should create a block that checks to see if anything is pressed on the keyboard, and if not, execute a command. I have some neat ideas for it. For instance:
If <nothing pressed>
execute command
That one is my first idea and most looked into. It would be alot simpler that having to put something like:
If <not left or right arrow keys pressed?>
execute command
Aside from eliminating the small annoyance of using those blocks, I think it could also expand the capabilities of user's creation using the software. Some other ideas are as follows:
If <nothing a -z pressed>
execute command
that condition would only check the letter keys, and there could be one for numbers and space-bar and arrow keys such as:
If <not pressing space-bar or arrow keys>
execute command
and:
If <nothing 0-9 pressed>
execute command
The space-bar and arrow keys block would be a bit limited in terms of how many key strokes it covers, but it would still eliminate the If/or/and block cluster in projects.
-Also, if these blocks WERE to be created, do you think Scratch should just eliminate the If/and/or blocks? Why or why not?
Let me know your thoughts on this subject. Feedback is greatly appreciated. Thank you (:
-Z
Last edited by Zparx (2011-09-24 12:15:03)
Offline
<not> <key[ ]pressed?> >>
Doesn't work for all, but it works.
Offline
ihaveamac wrote:
<not> <key[ ]pressed?> >>
Doesn't work for all, but it works.
well I know that, that's just it though. It "doesn't work for all". I was suggesting one that checks if no keys are pressed.
Offline
I think these are the main ones we need:
<number pressed>
<letter pressed>
<arrow key pressed>
<any key pressed>
Those can then be combined with the "not" block.
Offline
Greenatic wrote:
I think these are the main ones we need:
<number pressed>
<letter pressed>
<arrow key pressed>
<any key pressed>
Those can then be combined with the "not" block.
Great idea
Offline
Greenatic wrote:
I think these are the main ones we need:
<number pressed>
<letter pressed>
<arrow key pressed>
<any key pressed>
Those can then be combined with the "not" block.
I agree!!
Offline
first, you could if <not<key( )pressed>[command, second, with the release os Scratch 2.0, you could make such a block. If you want, write to me, I'll try to make such a block in BYOB for you.
Offline