Discuss Scratch
- Discussion Forums
- » Bugs and Glitches
- » when [key] pressed block doesn't work
- Studio04040807
-
Scratcher
100+ posts
when [key] pressed block doesn't work
My browser / operating system: Windows 7, Chrome 58.0.3029.110, Flash 26.0 (release 0)
I was making a project in which you can edit items in a list, and I used the variable currentlistplace to be the list item being edited. I used the script
(Don't suggest the key pressed boolean. I have my reasons for not using the boolean here.)
I was making a project in which you can edit items in a list, and I used the variable currentlistplace to be the list item being edited. I used the script
when [up arrow v] key pressedHowever, this didn't work. Can anybody fix this?
change [currentlistplace v] by (-1)
when [down arrow v] key pressed
change [currentlistplace v] by (1)
(Don't suggest the key pressed boolean. I have my reasons for not using the boolean here.)
- drmcw
-
Scratcher
1000+ posts
when [key] pressed block doesn't work
This should be in help with scripts. Share the project.
- Studio04040807
-
Scratcher
100+ posts
when [key] pressed block doesn't work
This should be in help with scripts. Share the project.First of all, the script used to work perfectly fine, so this must be a bug.
Second of all, the project isn't finished yet, and I don't want to share it unfinished.
- PkmnQ
-
Scratcher
1000+ posts
when [key] pressed block doesn't work
My browser / operating system: Windows 7, Chrome 58.0.3029.110, Flash 26.0 (release 0)What happened when you tried it?
I was making a project in which you can edit items in a list, and I used the variable currentlistplace to be the list item being edited. I used the scriptwhen [up arrow v] key pressedHowever, this didn't work. Can anybody fix this?
change [currentlistplace v] by (-1)
when [down arrow v] key pressed
change [currentlistplace v] by (1)
(Don't suggest the key pressed boolean. I have my reasons for not using the boolean here.)
- Studio04040807
-
Scratcher
100+ posts
when [key] pressed block doesn't work
Absolutely nothing. This used to work, but when I tried it this time, nothing at all happened, as if I didn't press the keys.My browser / operating system: Windows 7, Chrome 58.0.3029.110, Flash 26.0 (release 0)What happened when you tried it?
I was making a project in which you can edit items in a list, and I used the variable currentlistplace to be the list item being edited. I used the scriptwhen [up arrow v] key pressedHowever, this didn't work. Can anybody fix this?
change [currentlistplace v] by (-1)
when [down arrow v] key pressed
change [currentlistplace v] by (1)
(Don't suggest the key pressed boolean. I have my reasons for not using the boolean here.)
- drmcw
-
Scratcher
1000+ posts
when [key] pressed block doesn't work
Unless you share the project how can anyone help?
- Studio04040807
-
Scratcher
100+ posts
when [key] pressed block doesn't work
Unless you share the project how can anyone help?I'm showing you the exact scripts I used in the first post.
- drmcw
-
Scratcher
1000+ posts
when [key] pressed block doesn't work
and they work fine https://scratch.mit.edu/projects/167272278/. Next question…..?
- asivi
-
Scratcher
1000+ posts
when [key] pressed block doesn't work
This should be in help with scripts. Share the project.First of all, the script used to work perfectly fine, so this must be a bug.
Second of all, the project isn't finished yet, and I don't want to share it unfinished.
You need to prove it is not an scripting mistake, otherwise please close this topic.
Last edited by asivi (June 26, 2017 07:44:58)
- Discussion Forums
- » Bugs and Glitches
-
» when [key] pressed block doesn't work