I see the "On ANY key pressed" in the keyboards event. How can I limit it to react only if an alphabetical char (A TO Z) is pressed?
I'd like not to have multiple events like:
On KEY PRESSED "A"
On KEY PRESSED "B"
On KEY PRESSED "C"
On KEY PRESSED "D"
and so on.....
Is there a way?
Thank you!
I found way (maybe not the best.
I have a global var "ABCDEFGHI.....Z" and I compare if the valuef from the keyboard is inside this var with find(Variable, Keyboard.StringFromKeyCode(Keyboard.LastKeyCode))
There should be an "on key pressed" option, which allows you to pick ANY key.
"On key pressed" asks you wich key shold be pressed to fire an action.
So one should do:
"On key pressed A"
"On key pressed B"
"On key pressed C"
and so on...
Develop games in your browser. Powerful, performant & highly capable.
You did right, also, you can use dictionary instead of global variable.
Ciao121
You could use ascii-codes:
Keyboard | On any key pressed
System | 65= Keyboard.LastLeyCode=90 -> Do something.
Ciao121 You could use ascii-codes: Keyboard | On any key pressed System | 65= Keyboard.LastLeyCode=90 -> Do something.
Thank you; I thinked about it. But I preferred my solution becaouse it was easier "to read" in the code.