I have seen this, and I would agree. I was think, and why not make a block called [Key Pressed]? Whatever key is pressed, [Key Pressed] would switch to that. [Key Pressed] would be used for those typewriter games. You would say forever, switch to costume [key Pressed]. And maybe (since your costumes might be called 1,2,3 etc) each key on the keyboard would get a value, like A=1, B=2, Space=27, etc, so you can use it with any thing.
Offline
Do you mean the last key pressed? I guess this is fine. Maybe it should be also possible to reset the key, so repetitions of a key will be easily detected?
Offline
bigB wrote:
so would both '1' and 'A' set the variable to 1?
If they did that, they would need to figure all that stuff out. I just thought of using it for making easier word processors
Offline
i think half the point of making a word processor on scratch is to be able to boast about how long your attention span is.
Offline
bigB wrote:
i think half the point of making a word processor on scratch is to be able to boast about how long your attention span is.
lol. But I was going to try something else that remembers what you wrote and types it back to you. But that'd be 26 scripts for typing and than 26 scripts of remembering like 27 different colors (space is a color).
Last edited by Bluestribute (2008-06-30 12:03:52)
Offline
bigB wrote:
what is an ASCII value?
It is a standard set of codes for the keyboard keys. See the Wikipedia link below
http://en.wikipedia.org/wiki/ASCII
Offline
What... do you mean like if <key[ any ]pressed?>
Offline