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

#1 2010-07-19 10:49:29

Gveradux
Scratcher
Registered: 2010-06-18
Posts: 100+

How do I create a mouse scrolling script?

I want a script where my background will moves with my mouse, for example, if mouse was in top-right, it would move top right-er. do you get what I mean? < In all four directions would be nice.

Could someone make a picture of  the script, not the forum blocks.

Thankyou

Offline

 

#2 2010-07-19 12:55:01

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: How do I create a mouse scrolling script?

It's a little complex, but here's a script that should work...  smile

http://i31.tinypic.com/348rsep.gif

Click for full size  big_smile


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

#3 2010-07-19 12:57:57

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Re: How do I create a mouse scrolling script?

Gveradux wrote:

I want a script where my background will moves with my mouse, for example, if mouse was in top-right, it would move top right-er. do you get what I mean? < In all four directions would be nice.

Could someone make a picture of  the script, not the forum blocks.

Thankyou

try this tutorial, it has a mouse bit at the end.
I was going to work it out for you but Wolfie beat me to it  smile

Last edited by melikecheese (2010-07-19 12:59:15)


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

#4 2010-07-19 14:45:14

Gveradux
Scratcher
Registered: 2010-06-18
Posts: 100+

Re: How do I create a mouse scrolling script?

Thanks, but some people want arrows to move so... But I might use the scroll thingy, TY!!!!!!!!!!!!!!!!

<set pen color to( hi!)

Offline

 

#5 2010-07-19 14:47:19

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: How do I create a mouse scrolling script?

I made a base that uses arrow keys, too  smile  It's here


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

Board footer