Discuss Scratch

PoIygon
Scratcher
1000+ posts

How do I detect the most recent key a person pressed?

I tried a really long script that uses a bunch of if else’s but that took too much work so I’m asking here.
deck26
Scratcher
1000+ posts

How do I detect the most recent key a person pressed?

You can use a list or a text variable containing possible keypresses and loop through checking for that key being pressed. Then it's just a case of recording the key. The variable used for that will always show the last key pressed.
Sushi-Pharaoh
Scratcher
6 posts

How do I detect the most recent key a person pressed?

You can use a list or a text variable containing possible keypresses and loop through checking for that key being pressed. Then it's just a case of recording the key. The variable used for that will always show the last key pressed.
Thank you!!!
deck26
Scratcher
1000+ posts

How do I detect the most recent key a person pressed?

Sushi-Pharaoh wrote:

You can use a list or a text variable containing possible keypresses and loop through checking for that key being pressed. Then it's just a case of recording the key. The variable used for that will always show the last key pressed.
Thank you!!!
Please don't necropost even if an old topic was useful for you.

Powered by DjangoBB