Discuss Scratch

belugawhale
Scratcher
25 posts

When <key> pressed?

I would like it if someone could hack the hat block When <key> pressed? block with a (join ()()) block in the dropdown.

Thanks,

BW

–belugawhale
OrcaCat
Scratcher
1000+ posts

When <key> pressed?

Hardmath123 has already done it Be sure to give him credits!


belugawhale
Scratcher
25 posts

When <key> pressed?

I was looking for the hat block WHEN key pressed, not the key pressed blue block.

–belugawhale
OrcaCat
Scratcher
1000+ posts

When <key> pressed?

belugawhale wrote:

I was looking for the hat block WHEN key pressed, not the key pressed blue block.
Whoops… here's a quick workaround:
when green flag clicked
forever
if <key (join() ()) pressed> then
broadcast [keypress action v]
end
end
when I receive [keypress action v]
do whatever


belugawhale
Scratcher
25 posts

When <key> pressed?

The reason I want the hat block is because it has a built-in delay that corresponds to the computer's settings. (There are settings that change how long to wait before repeating a key, and then how long in between repeating keys.)
when [ ?] key pressed

Last edited by belugawhale (Jan. 18, 2014 15:21:45)


–belugawhale
AonymousProfessor
Scratcher
100+ posts

When <key> pressed?

Here you go.

I am @AonymousGuy's test account!

The word “test” in test accounts is outdated. That is why mine has professor instead!

Thanks @MicroMacro for the profile image!
belugawhale
Scratcher
25 posts

When <key> pressed?

say [Thank you all for the feedback!]

–belugawhale

Powered by DjangoBB