Discuss Scratch
- Discussion Forums
- » Suggestions
- » More if key pressed blocks!
- King_Kat_Games
-
Scratcher
4 posts
More if key pressed blocks!
it would be very helpful if you guys could add more keys to the “if key pressed” blocks. You could add things like:
shift
tab
F1, F2, ect.
command
option (for Mac)
control
esc
(symbols) !, @, #, ect
Edit: Right click
shift
tab
F1, F2, ect.
command
option (for Mac)
control
esc
(symbols) !, @, #, ect
Edit: Right click
Last edited by King_Kat_Games (April 25, 2019 19:32:17)
- XayCraft360
-
Scratcher
100+ posts
More if key pressed blocks!
The symbols are easily workaroundable as of 3.0, but support for the others
- PhoenixLondon2008
-
Scratcher
100+ posts
More if key pressed blocks!
The symbols are easily workaroundable as of 3.0, but support for the othersHow do you workaround for them?
- justsomenerds
-
Scratcher
31 posts
More if key pressed blocks!
<key [(join [@] []) v] pressed?>
well that didn't turn out as expected
Last edited by justsomenerds (March 7, 2019 17:59:15)
- Za-Chary
-
Scratcher
1000+ posts
More if key pressed blocks!
Here's the fix:
Replace the # with @, !, or any of these:
! @ # $ % ^ & * ( ) < > ? : " { } | _ + - = \ ; ‘ , . /
(I haven’t tested all of these, but I'm assuming they work.)
<key (join [#] []) pressed?>
Replace the # with @, !, or any of these:
! @ # $ % ^ & * ( ) < > ? : " { } | _ + - = \ ; ‘ , . /
(I haven’t tested all of these, but I'm assuming they work.)
- Starstriker3000
-
Scratcher
1000+ posts
More if key pressed blocks!
I support! I used to use a “hacked” block in my Warriors games to allow the player to run if CTRL and the left arrow key, right arrow key, A key, or D key were pressed. I liked it because the CTRL keys are placed close by the WASD keys and the arrow keys, and you can use them to run no matter which set of keys you were using. However, with the coming of Scratch 3.0, “hacked” blocks stopped working. I would like for this to be added!
- NilsTheBest
-
Scratcher
1000+ posts
More if key pressed blocks!
I believe this is a duplicate.
Support for adding keys such as ! @ # etc., but no support for adding keys such as F1, F2, ctrl (or cmd), and things like alt and function. These keys often serve purposes that are needed to for example copy things, paste things, delete things, do other functions that you don't want to have an effect on the project you're playing (e.g. “ctrl” and the "Fnumber“ keys). For example, let's say that you wanted to copy and paste something. Without a doubt, you'll have to use the ”Ctrl“ (or ”Cmd“) key. Or let's say that you want to turn down the volume and have to press ”F2“ or ”F3". If pressing one of those keys triggers something in the project, you don't want that action to be triggered when pressing that specific key. I thus don't think it should be implemented, as it could end up with unwanted things.
Support for adding keys such as ! @ # etc., but no support for adding keys such as F1, F2, ctrl (or cmd), and things like alt and function. These keys often serve purposes that are needed to for example copy things, paste things, delete things, do other functions that you don't want to have an effect on the project you're playing (e.g. “ctrl” and the "Fnumber“ keys). For example, let's say that you wanted to copy and paste something. Without a doubt, you'll have to use the ”Ctrl“ (or ”Cmd“) key. Or let's say that you want to turn down the volume and have to press ”F2“ or ”F3". If pressing one of those keys triggers something in the project, you don't want that action to be triggered when pressing that specific key. I thus don't think it should be implemented, as it could end up with unwanted things.
Last edited by NilsTheBest (March 7, 2019 23:20:03)
- openPoll
-
Scratcher
1000+ posts
More if key pressed blocks!
Here's the fix:I tested them, and they all seem to work. If the character is one that you would normally access by pressing shift, hold shift and press the key<key (join [#] []) pressed?>
Replace the # with @, !, or any of these:
! @ # $ % ^ & * ( ) < > ? : " { } | _ + - = \ ; ‘ , . /
(I haven’t tested all of these, but I'm assuming they work.)
I believe this is a duplicate. <snip> no support for adding keys such as F1, F2, ctrl (or cmd), and things like alt and function. These keys often serve purposes that are needed to for example copy things, paste things, delete things, do other functions that you don't want to have an effect on the project you're playing (e.g. “ctrl” and the "Fnumber“ keys). For example, let's say that you wanted to copy and paste something. Without a doubt, you'll have to use the ”Ctrl“ (or ”Cmd“) key. Or let's say that you want to turn down the volume and have to press ”F2“ or ”F3". If pressing one of those keys triggers something in the project, you don't want that action to be triggered when pressing that specific key. I thus don't think it should be implemented, as it could end up with unwanted things.I completely agree. I use Alt+Tab to change windows and screens, and if the Alt key activated something in my project, that would make things VERY hard for me.
- -Snipet-
-
Scratcher
500+ posts
More if key pressed blocks!
it would be very helpful if you guys could add more keys to the “if key pressed” blocks. You could add things like:I don’t know if Scratch could access the F1, F2 (etc) buttons. But otherwise, this is a good idea.
shift
tab
F1, F2, ect.
command
option (for Mac)
control
esc
(symbols) !, @, #, ect

- MrFluffyPenguins
-
Scratcher
1000+ posts
More if key pressed blocks!
Support, it is pretty obvious why.
- openPoll
-
Scratcher
1000+ posts
More if key pressed blocks!
<key (join [@] []) pressed?>
well that didn't turn out as expected
- --Explosion--
-
Scratcher
1000+ posts
More if key pressed blocks!
Support, but I think there should be a notice when you start a project that binds keys such as command, option, control and esc that is something like “This project binds powerfull keys, would you still like to allow this?” and a yes no button
- StrangeMagic32
-
Scratcher
1000+ posts
More if key pressed blocks!
No support for Alt, too much potential for griefing
eg.
Alt + F4
Ctrl + Alt + Del
Seems alt was removed, so support, would be nice
eg.
Alt + F4
Ctrl + Alt + Del
Seems alt was removed, so support, would be nice
Last edited by StrangeMagic32 (April 26, 2019 15:22:52)
- Paddle2See
-
Scratch Team
1000+ posts
More if key pressed blocks!
DuplicateThanks for the link! It does look like this is a duplicate topic so I'll close it to keep the conversation all in one place.
Please use the existing topic in the link above.
- Discussion Forums
- » Suggestions
-
» More if key pressed blocks!













