This topic (http://scratch.mit.edu/forums/viewtopic.php?id=14244) remembered me of t5he scroll wheel feature in Scratch, and I'd like to give some more help on it. Thanks Dan01! Check out an example of this feature at http://scratch.mit.edu/projects/Dan01/413561 .
What it does...
When you roll the scroll wheel up, all "When up arrow key pressed" hats are triggered,
When you roll the scroll wheel down, all "When down arrow key pressed" hats are triggered.
[blocks]<when[ Up arrow ]key pressed>[/blocks]
However, the key sensing block (the light blue one) does not react to the scroll wheel.
And how to use it!
So, we know the Up and Down arrow Key hats (from the "control category) are started with the scroll wheel, but the [sensing] block isn't. But, our scroll wheel scripts should not be run with the up and down arrow keys. ...
[blocks]
<when[ Up arrow ]key pressed>
<if><not> <key[ Up arrow ]pressed?> >>
(do some scroll stuff)
<end>
[/block]
Thanks Dan01!
Offline
Will this work online?
Offline
probally wont, similarly, through a combo of key down and click background you can work ot the right click and left click offLine
Offline