Re 1. It is not easy to add new blocks. You would need to change the source code of Scratch. What kind of blocks do you want to add?
Re 2. There is no block to capture more than one character. What you can do is capture each key stroke and store the order and times in which the strokes have been captured using variables.
Offline
A block which does what you suggest would be nice.
"What you can do is capture each key stroke and store the order and times in which the strokes have been captured using variables."
How do you set the random key pressed valu to the variable
Offline
Hi frankmon,
We currently don't have a way to handle non-numeric variables or concatenate variables, though both of those features are on our wish list.
Sometimes you can work around not being able to concatenate variables by multiplying and adding numbers as they are entered. This calculator example concatenates numbers as the user enters them:
http://scratch.mit.edu/projects/TeenSummit2006/1946
Does that answer your question?
Thanks!
Offline
frankmon wrote:
2. Is there blocks which allow to capture an input from the keyboard, other than a single key stroke.
If you mean by capture that you want to see if someone pressed "a" and "b" at the same time, you could simple do a forever if loop and use the "and" block found under the numbers section, to check for key "a" pressed and key "b" pressed. That way it will only fire that loop if both a and b are pressed.
But maybe that is not what you mean.
Offline