This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-04-13 18:53:38

battlekid
Scratcher
Registered: 2009-04-13
Posts: 4

Mouse scroll wheel is the up key in Scratch?

In a new project that I am making, I made a script that at one part in the script you are supposed to press the up key to run a script. When I scroll up and to the right, the program thinks I am pressing the up key.

HELP!!!!

sorry about the bad grammer!  smile

Last edited by battlekid (2009-04-13 18:56:34)

Offline

 

#2 2009-04-13 20:25:35

HaiTek
Scratcher
Registered: 2007-10-25
Posts: 25

Re: Mouse scroll wheel is the up key in Scratch?

Scratch, for some reason or another, maps the scroll wheel to the up and down keys. When you scroll up, up key is pressed, and the down key is pressed when scrolling down. This behavior does not happen online, but is unavoidable in Scratch itself  hmm

Last edited by HaiTek (2009-04-13 20:25:46)


Check out my awesome MMO Engine!

Offline

 

#3 2009-04-14 04:12:56

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: Mouse scroll wheel is the up key in Scratch?

instead of using the block head, use a if statement.

<if><key[ UP ]pressed?>

It is only the bloack head that makes this occur
<when[ UP ]key pressed>

Offline

 

#4 2009-04-14 11:37:57

battlekid
Scratcher
Registered: 2009-04-13
Posts: 4

Re: Mouse scroll wheel is the up key in Scratch?

Thanks, that helps a lot!

Offline

 

#5 2009-04-14 14:18:23

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: Mouse scroll wheel is the up key in Scratch?

HaiTek wrote:

Scratch, for some reason or another, maps the scroll wheel to the up and down keys. When you scroll up, up key is pressed, and the down key is pressed when scrolling down. This behavior does not happen online, but is unavoidable in Scratch itself  hmm

It will work online if you do


Wehn up arrow key pressed
if not up arrow key pressed
whatever


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

Board footer