Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do I make a list that shows which keys are pressed?
- Rocket-Flier
-
Scratcher
100+ posts
How do I make a list that shows which keys are pressed?
I want to make a list that shows which keys are pressed. If I don't press the key it will stop showing it in the list.
Can you help me?
















Can you help me?

















(keys pressed :: list)
- Extremguy
-
Scratcher
100+ posts
How do I make a list that shows which keys are pressed?
So what do you want? A list that show keys but if you dont press it it get deleted? What the point to have a list then
- asivi
-
Scratcher
1000+ posts
How do I make a list that shows which keys are pressed?
when green flag clickededit: soorry for the confussion
hide variable [KEY PRESSED v]
when [a v] key pressed
if <[list v] contains [a] ?> then
set [KEY PRESSED v] to [a]
show variable [KEY PRESSED v]
wait until <not <key [a v] pressed?>>
hide variable [KEY PRESSED v]
end
Last edited by asivi (Nov. 13, 2016 14:34:32)
- Rocket-Flier
-
Scratcher
100+ posts
How do I make a list that shows which keys are pressed?
https://scratch.mit.edu/projects/130544124/
I want to have the list hold more than one key. I'll try editing your idea.



- Discussion Forums
- » Help with Scripts
-
» How do I make a list that shows which keys are pressed?