Discuss Scratch

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?
(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
SlitherShade_m8
Scratcher
64 posts

How do I make a list that shows which keys are pressed?

asivi
Scratcher
1000+ posts

How do I make a list that shows which keys are pressed?

when green flag clicked
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
edit: soorry for the confussion

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?

SlitherShade_m8 wrote:

https://scratch.mit.edu/projects/130544124/

I want to have the list hold more than one key. I'll try editing your idea.

Powered by DjangoBB