Discuss Scratch

Tymewalk
Scratcher
1000+ posts

when "shift" key pressed

J0hnnoe_2618 wrote:

Support and could there be 1,2,3,4,5,6,7,8,9,0 added in at the same time.
1-0 are already there.

Support for adding more keys such as left/right shift/contol/alt, backspace, special symbols (backslash anyone?), etc. I think this would be useful for projects such as:
  • OSes - You could make a real control-alt-delete instead of just C-A-D.
  • Shooter games - Many of these use shift to run and control (ctrl) to crouch, currently not many on Scratch do because there's no Vanilla block for them.
  • Special cheat codes - Control-alt-delete could be a special cheat code for a game.
  • Enabling a cheat console - The ` key is used by many games to open the developer console.
jacquesimo
Scratcher
100+ posts

when "shift" key pressed

One of the reasons this has not been added is because dragging a variable into a when key pressed function will probably crash Scratch if multiple letters are in the variable. Also adding the function keys such as CTRL, FN, ALT, SHIFT, CAPS LOCK, TAB, and BACKSPACE are all function keys, meaning if they are combined with another key like CTRL W will override the Scratch Project and close the web page.

This is a theory not a statement!
Scratcher1002
Scratcher
1000+ posts

when "shift" key pressed

fastmapler wrote:

DeutschBlitz wrote:

Sounds like a great idea, this is something that's been bothering me lately. While we're at it, they should also add when system key (Windows for example) , or any other key (/ for example) pressed.
Good idea! It is very annoying to have to look at the whole list to find a letter that is limited to a-z, 0-9, arrow keys, and space. +1 for OP and Blitz
programma07
Scratcher
36 posts

when "shift" key pressed

Tymewalk wrote:

Zarlog wrote:

Tymewalk wrote:

Zarlog wrote:

And instead of having a drop-down menu, you could just type in the key in a text box.
Then what happens if I do this?
keydndnpressed?
It would just automatically go back to blank until a single symbol is entered.
But what if I try typing “shift”? Does it detect that?

Type “shift”.

programma07
Scratcher
36 posts

when "shift" key pressed

keyshiftpressed?
lizardz25
Scratcher
30 posts

when "shift" key pressed

DeutschBlitz wrote:

Sounds like a great idea, this is something that's been bothering me lately. While we're at it, they should also add when system key (Windows for example) , or any other key (/ for example) pressed.
you can do that:
keyjoin$/pressed?
you put a dollar sign and then the key, but only with typable characters. (by the way, i learned that from griffpatch, https://scratch.mit.edu/users/griffpatch/ )

Last edited by lizardz25 (May 24, 2016 20:12:50)

foxydafoxdude
Scratcher
77 posts

when "shift" key pressed

keyshiftpressed?

That Works! Just Go To https://scratch.mit.edu/projects/976646/#player
Sheep_maker
Scratcher
1000+ posts

when "shift" key pressed

Would the “enter”, “backspace”, and “ctrl” be displayed as “return”, “delete”, and “command”, or would the Windows keys be prioritized over Apple? (even worse - if we were to add the “delete” option, things would get confusing)
Toa_Vezon22
Scratcher
18 posts

when "shift" key pressed

I just think you should be able to add
Variables
into
keypressed?
blocks. With a
join
block, you could enter whatever you want in there. It could also be great for adding a control customization function to games.
Toa_Vezon22
Scratcher
18 posts

when "shift" key pressed

foxydafoxdude wrote:

keyshiftpressed?

That Works! Just Go To https://scratch.mit.edu/projects/976646/#player
I clicked the link. The project does not work, likely due to its age.
AnimationBoomer
Scratcher
100+ posts

when "shift" key pressed

Stealthydude wrote:

I was wondering if you could make it so that you can use the “shift” key for projects, or other keys like Ctrl, Alt, Enter, Backspace, comma, or period. The only thing that would be annoying would be sticky keys, but people can disable that. Thanks!

Thank you for all the support!

No support.

Reason:
This is already in Scratch. I think griffpatch made a project with a block that has this.

I think either one was the block he used:
keypressed?
whenkeypressed

Just empty out the key pressed section and you can use it on Shift, Control, etc.

Last edited by AnimationBoomer (May 29, 2016 19:21:40)

AnimationBoomer
Scratcher
100+ posts

when "shift" key pressed

Stealthydude wrote:

I was wondering if you could make it so that you can use the “shift” key for projects, or other keys like Ctrl, Alt, Enter, Backspace, comma, or period. The only thing that would be annoying would be sticky keys, but people can disable that. Thanks!

Thank you for all the support!

Here is the project. So no support because it is already supported in Scratch.
rasmusolle
Scratcher
100+ posts

when "shift" key pressed

Support
Austinato
Scratcher
1000+ posts

when "shift" key pressed

I support this idea, so it'll be easier for us to use that, rather than hacking blocks and sharing those hacked blocks.

Support for convenience.

(Note: People have already worked around this by hacking projects. However, that is a slightly longer process and requires you to drag a sprite/script to your backpack.)

Last edited by Austinato (May 29, 2016 20:43:04)

Toa_Vezon22
Scratcher
18 posts

when "shift" key pressed

Austinato wrote:

I support this idea, so it'll be easier for us to use that, rather than hacking blocks and sharing those hacked blocks.

Support for convenience.

(Note: People have already worked around this by hacking projects. However, that is a slightly longer process and requires you to drag a sprite/script to your backpack.)
I agree, for the same reasons. Support.
Toa_Vezon22
Scratcher
18 posts

when "shift" key pressed

AnimationBoomer wrote:

Stealthydude wrote:

I was wondering if you could make it so that you can use the “shift” key for projects, or other keys like Ctrl, Alt, Enter, Backspace, comma, or period. The only thing that would be annoying would be sticky keys, but people can disable that. Thanks!

Thank you for all the support!

Here is the project. So no support because it is already supported in Scratch.
It requires hacked blocks, which are a pain to get.
Sheep_maker
Scratcher
1000+ posts

when "shift" key pressed

AnimationBoomer wrote:

Stealthydude wrote:

I was wondering if you could make it so that you can use the “shift” key for projects, or other keys like Ctrl, Alt, Enter, Backspace, comma, or period. The only thing that would be annoying would be sticky keys, but people can disable that. Thanks!

Thank you for all the support!

Here is the project. So no support because it is already supported in Scratch.
Hacked blocks are discouraged by the Scratch team and might even be against the Guidelines. Scratchers have to be able to understand the mess inside others' projects, you know
SuperNicky
Scratcher
100+ posts

when "shift" key pressed

No practical use, no support.
LattleKada
Scratcher
100+ posts

when "shift" key pressed

Support, also maybe others like ctrl. and alt.
Toa_Vezon22
Scratcher
18 posts

when "shift" key pressed

SuperNicky wrote:

No practical use, no support.
how about “when you press the shift key, your character runs”? Seems practical for game design. More button support is a good thing.

Powered by DjangoBB