Discuss Scratch

C0nyc0n
Scratcher
100+ posts

Just add the rest of the keys already

Esc can't be used because it is a shortcut to exit fullscreen.

but other keys would be so useful.
HappyZac314
Scratcher
18 posts

Just add the rest of the keys already

Support

<key [ *] pressed?>

But what about things like !@£$%^&*()

Last edited by HappyZac314 (Oct. 13, 2019 17:33:44)


(days until 2.2)
imfh
Scratcher
1000+ posts

Just add the rest of the keys already

HappyZac314 wrote:

Support

<key [ *] pressed?>

But what about things like !@£$%^&*()
Those work, they just aren't in the drop down menu. You can put a block in it instead and it works correctly.

<key (join [] [@]) pressed?> // This works

Scratch to Pygame converter: https://scratch.mit.edu/discuss/topic/600562/
-Snipet-
Scratcher
500+ posts

Just add the rest of the keys already

The following keys work with the
<key (join [] [@]) pressed?>
hack:

a b c d e f g h i j k l m n o p q r s t u v w x y z 1 2 3 4 5 6 7 8 9 0 ! @ # $ % ^ & * ( ) _ - ~ ` : ; " ' < , > . ? / + =


website =)
Blasted little 60 second rule…
miniepicness
Scratcher
1000+ posts

Just add the rest of the keys already

-Snipet- wrote:

The following keys work with the
<key (join [] [@]) pressed?>
hack:

a b c d e f g h i j k l m n o p q r s t u v w x y z 1 2 3 4 5 6 7 8 9 0 ! @ # $ % ^ & * ( ) _ - ~ ` : ; " ' < , > . ? / + =

don't forget that all the other keys anyone can type on a keyboard also works. It's not worth making a list for them all.
edit: please don't have bad quote tags

Last edited by miniepicness (Oct. 13, 2019 21:16:14)

EIephant_Lover
Scratcher
500+ posts

Just add the rest of the keys already

Brian3141 wrote:

EIephant_Lover wrote:

kChiaEC19 wrote:

<key (join [enter] []) pressed?> // doesn't require JSON editing in 3.0
when (join [enter] []) key pressed // requires JSON editing in 3.0
Does not work for all keys (e.g. shift, backspace, ctrl, etc.)
He was telling you another method
I know, but it doesn't work. I was saying it doesn't work.
micro_bitty
Scratcher
100+ posts

Just add the rest of the keys already

Workaround:
<key (join [key] []) pressed?>
NOTE:
For alphanumerical keys, you just insert the ASCII or Unicode format for it, like this:
<key (join [.] []) pressed?>
<Not <key (join [period] []) pressed?>. :: operators
For non-alphanumeric keys, you put in the name of the key, like:
<key (join [enter] []) pressed?>

Carl Sagan wrote:

To create an apple script in Scratch, you must first invent the Massachusetts Institute of Technology.
Scratcher since 2018 ¦ Professional memer ¦ Check out my projects!
Starstriker3000
Scratcher
1000+ posts

Just add the rest of the keys already

micro_bitty wrote:

Workaround:
<key (join [key] []) pressed?>
NOTE:
For alphanumerical keys, you just insert the ASCII or Unicode format for it, like this:
<key (join [.] []) pressed?>
<Not <key (join [period] []) pressed?>. :: operators
For non-alphanumeric keys, you put in the name of the key, like:
<key (join [enter] []) pressed?>
What about ctrl? It doesn't work in that last thing you put.
46009361
Scratcher
1000+ posts

Just add the rest of the keys already

Support.
Please comment on my profile instead - I don't follow this discussion!
There is a MAJOR con, though. This cannot be fixed. The value of the
<key [ v] pressed?>
block is affected by the HTML events called onkeydown and onkeyup. The
when [ v] key pressed
block is triggered by the HTML event called onkeypress. However, according to a W3Schools article, the onkeypress event is not triggered for all keys, while the onkeydown and onkeyup events are.

Inspired by coder2045—which, in turn, got inspired by Mr_PenguinAlex.
What's wrong with these blocks? There are zero mistakes because no round has started yet. Beware that some of the mistakes don't relate to the Scratch blocks below.
// No round has started yet.
Be the first to comment all of the mistakes on my profile correctly and you'll get a love! You can't comment any mistakes right now because there are none!
Scratch---Cat
Scratcher
1000+ posts

Just add the rest of the keys already

Brian3141 wrote:

Starstriker3000 wrote:

Scratch---Cat wrote:

I'm making a GoogIe simulator and l need it.
What keys specifically do you need? If it's just enter, you can use the “hacked” block
<key (join [enter] []) pressed?>
in the
if <> then

end

wait until <>

repeat until <>

end
blocks.
Shift, Alt, Ctrl etc
Especially backspace.

Download Scratch 2.0 | Check your messages | Check my messages
_____________________________________________________________________________________________________

If you want to subscribe to this forum topic, please click the
{} Follow Discussion :: ring sensing
button below this forum post! Thanks!

arpa76
Scratcher
100+ posts

Just add the rest of the keys already

Look at this:
https://scratch.mit.edu/projects/382135349/
Follow the instructions in editor

Last edited by arpa76 (April 3, 2020 13:11:11)


I think, therefore I am.
-GentooPenguin-
Scratcher
100+ posts

Just add the rest of the keys already

Support. It would be very useful.
hocsten
Scratcher
100+ posts

Just add the rest of the keys already

You know you could always just use
(join [Whatever] [This is blank])

This account is now unused. Please see @BlooXen and @GlowingK.
Starstriker3000
Scratcher
1000+ posts

Just add the rest of the keys already

hocsten wrote:

You know you could always just use
(join [Whatever] [This is blank])
That only works for numbers, letters, symbols like “@#$,” and the Enter key… it doesn't work for Shift, Control, or Backspace.

Last edited by Starstriker3000 (April 14, 2020 14:26:44)

dabigBANG4
Scratcher
20 posts

Just add the rest of the keys already

SUPPORT. Shift, tab, caps lock, enter, the punctuation keys, all types of parntheses, slashes, plus minus, ~, * backspace, etc.
Karioton
Scratcher
14 posts

Just add the rest of the keys already

Just in case anyone needs it, I made a custom key detector!
Scratchfangs
Scratcher
1000+ posts

Just add the rest of the keys already

Karioton wrote:

Just in case anyone needs it, I made a custom key detector!

Please don't necropost. I'm reporting this forum to be closed.
But thanks for the project!

Last edited by Scratchfangs (June 1, 2020 16:51:19)


coder2045
Scratcher
1000+ posts

Just add the rest of the keys already

FalconGunner99 wrote:

1234abcdcba4321 wrote:

100% support.
If you want full game controls, you need:
F keys
shift
enter
most other keys
Function keys are probably not a good idea, as most are usually bound to something, and, if someone is inexpirienced with a computer, they might mess up settings while trying to play a game.

My computer for instance, requires me to press ctrl when using the function keys to keep them from messing with my brightness/volume/screen settings. The only key that isn't bound to something is f5.

If someone didn't know this they might blame scratch for making their screen dim, or causing a video they were playing in the background to go full blast. OR they might accidentally be pressing another key when using them, which can cause it to go bad quickly, with alt+f4, etc.
Alt-F-huh? What does that do?

Highlight this text and press Ctrl-Shift-Down to view more of my signature. There's a lot in there.
I FOUND THE POSTIE POSTIE POST LINK THIS
Brainteaser: What comes next? Answer on my profile. First correct answer gets a follow.

[ ]
[ [ ] ]
[ [ [ ] ] [ ] ]
Good projects ⬇️




Vercte
Scratcher
500+ posts

Just add the rest of the keys already

coder2045 wrote:

~snip~
Alt-F-huh? What does that do?
It closes the window

not that active anymore

_________










Seriously. Period. I'm not that active anymore. I've recently realised that Scratch, while good for basic programing, is just not that versatile for making games. So, I've moved on to engines like Roblox and Stencyl, which are entirely different from scratch. Farewell.
AmazingMech2418
Scratcher
1000+ posts

Just add the rest of the keys already

This can be done quite easily now using the join block in the key pressed block (cannot be used in the key event hat block). Though, it would be more convenient to include the other keys in the dropdown as well. I've already submitted a pull request to add more keys and it was closed for an unknown reason.

I'm a programmer, ethical hacker, and space nerd!

Last edited by Neil Armstrong (July 20, 1969 20:17:00)












sam

Powered by DjangoBB