Using the "when __ key pressed" hat one can start different scripts when different keys are pressed. If you want to check for all alphabetic keys, is there a shorter way than having 26 scripts?
Offline
s_federici wrote:
Using the "when __ key pressed" hat one can start different scripts when different keys are pressed. If you want to check for all alphabetic keys, is there a shorter way than having 26 scripts?
ssadly, in today's Scratch, no.
Offline
forever
if key (A) pressed or key (B) pressed or key . . .
Last edited by bigB (2008-06-28 15:20:33)
Offline
That's fine. But then, if you have to discriminate among all 26 keys then you need further 26 "if" conditions. Is this correct?
Last edited by s_federici (2008-06-28 15:30:56)
Offline
s_federici wrote:
That's fine. But then, if you have to discriminate among all 26 keys then you need further 26 "if" conditions. Is this correct?
Spot on. It would be cool if someone could find a way, but you can't…

Offline
Unfortunately.....I wish that were possible!!!!!!!!!!!!!
Offline
Yes, this is for projects that involve teaching letter/words to children.
Offline
what about
<if><< <not> << <key[ b ]pressed?> <or> << <key[ d ]pressed?> <or> <key[ a ]pressed?> >> >>
that way you categorise it to a certain amount of the letters, the example is "bad" so if you press a key other than b, a or d it tells if ur wrong
Last edited by deatheater (2008-06-29 04:52:28)
Offline