Discuss Scratch
- MDCCCLXVII
-
1000+ posts
(keys pressed?) block
bump
edit: king of the page
edit: king of the page
Last edited by MDCCCLXVII (April 26, 2021 13:50:03)
- Zoomer_X
-
500+ posts
(keys pressed?) block
I know, they're suggesting it to be a block. Also, to make your block a sensing block, type “ :: sensing” at the end of your block.(key pressed)Is Not A block
- Zoomer_X
-
500+ posts
(keys pressed?) block
This would make a one-letter chatroom with this code. And if you meant “make a chatroom based on what you type”, then that is rejected, as if “meow” was a bad word, you could type “m” then “e” then “o” then “w”.Thanks. Support. This would make a safe-chat easier to makeset [chat message v] to (key pressed:: sensing)
- ContourLines
-
500+ posts
(keys pressed?) block
No support, as in many situations, the only block people really need is
<key [ v] pressed?>since many games only require 4 or 5 keybinds. The block you are proposing can be recreated with a little bit of effort and is relatively effective.
- SuperMarioHome
-
100+ posts
(keys pressed?) block
The symbols can be worked around with this: ALSO add Shift, Enter, Delete, Tab, Shift, and symbol support (period, comma, slash, etc.)
key (join [<symbol>] []) pressed?
where <symbol> is any symbol. It also works with the Enter key.
- Paddle2See
-
1000+ posts
(keys pressed?) block
This feature is present in Scratch 3.0 - including the “any key pressed” boolean(key/s pressed? :: sensing)Would be useful because the workaround is very complicated, and it help with text editors, chatbots and simulations.<key [L v] pressed?>could be exchanged with<(key/s pressed? :: sensing)=[L]>So what do you think?
MrSherlockHolmes

- MountY_Backup
-
100+ posts
(keys pressed?) block
But, they didn't implement the main feature he/she want to add, which is:This feature is present in Scratch 3.0 - including the “any key pressed” boolean(key/s pressed? :: sensing)Would be useful because the workaround is very complicated, and it help with text editors, chatbots and simulations.<key [L v] pressed?>could be exchanged with<(key/s pressed? :: sensing)=[L]>So what do you think?
MrSherlockHolmes
(key pressed :: sensing)
- jmb1293634
-
100+ posts
(keys pressed?) block
absolutely support I could just do something like this:
when green flag clickedbut that would take too long so I support
forever
if <key [a v] pressed?> then
set [key pressed v] to [a]
end
...
end