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

#1 2012-08-19 05:33:22

Jodymoses
Scratcher
Registered: 2012-05-03
Posts: 100+

Mouse scrolling

How do you scroll using the mouse but stop scrolling at a certain area


http://i46.tinypic.com/2hxwx9s.png
I Have Huge Ideas, But Only If You Listen And Talk To Me...

Offline

 

#2 2012-08-19 05:40:13

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: Mouse scrolling

Can you be a little more specific?  smile


http://i50.tinypic.com/312u714.jpg

Offline

 

#3 2012-08-19 07:13:59

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: Mouse scrolling

when gf clicked
forever
if <([abs v] of (mouse x)) < (scrolling boundary)>
set x to ((mouse x) * (-1))
end
if <([abs v] of (mouse y)) < (scrolling boundary)>
set y to ((mouse y) * (-1))


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#4 2012-08-19 09:18:12

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Mouse scrolling

when gf clicked
forever
if<(mouse y) > (140)>
change [scrollY v] by (round (((mouse y)-(140))/(10)))
end
if<(mouse y) < (-140)>
change [scrollY v] by (round ((((mouse y)*(-1))-(140))/(10)))
end
if<(mouse x) > (200)>
change [scrollX v] by (round (((mouse y)-(200))/(10)))
end
if<(mouse x) < (-200)>
change [scrollX v] by (round ((((mouse y)*(-1))-(200))/(10)))
end
if<(scrollX) > (scrollX_Max)>
set[scrollX v] to (scrollX_Max)
end
if<(scrollX) < (scrollX_Min)>
set[scrollX v] to (scrollX_Min)
end
if<(scrollY) > (scrollY_Max)>
set[scrollY v] to (scrollY_Max)
end
if<(scrollY) < (scrollY_Min)>
set[scrollY v] to (scrollY_Min)
end


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#5 2012-08-21 01:05:27

Jodymoses
Scratcher
Registered: 2012-05-03
Posts: 100+

Re: Mouse scrolling

So are the terrains 480x 360y


http://i46.tinypic.com/2hxwx9s.png
I Have Huge Ideas, But Only If You Listen And Talk To Me...

Offline

 

#6 2012-08-21 08:57:43

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Mouse scrolling

Jodymoses wrote:

So are the terrains 480x 360y

Yes


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

Board footer