Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Pitch Bug
- c_andycat
-
Scratcher
3 posts
Pitch Bug
Hey! So I'm making a playlist on Scratch, so you can change the pitch/speed with the up and down arrows. I don't have anything about the mouse cursor in the code, but I realized if you scroll down like to the comments the pitch/speed will go down. I honestly have no idea why and don't know how to fix it. Any suggestions?
- medians
-
Scratcher
1000+ posts
Pitch Bug
You can instead use up and down buttons or different keys (or tell people to just scroll down with the scrollbar/their mouse)
Last edited by medians (Feb. 21, 2023 04:32:25)
- awesome-llama
-
Scratcher
1000+ posts
Pitch Bug
The mouse scroll wheel maps to the up/down arrow key hats.
The boolean key detection blocks aren't affected so you can ensure only the arrow keys are pressed like this:
The boolean key detection blocks aren't affected so you can ensure only the arrow keys are pressed like this:
when [up arrow v] key pressed // detects key and scroll wheel
if <key [up arrow v] pressed?> then // only detects key
...
end
- Discussion Forums
- » Help with Scripts
-
» Pitch Bug