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

#1 2010-06-27 05:21:12

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

Mouse moving script

if your doing a pong game, this is a great script. Replace your keys with your mouse. I'll show you the script. NOTE: the script works well in Presentation Mode.

<when green flag clicked>
<set y to( 0 )
<forever>
<change y by (<mouse y>

If the script doesn't work can you tell me. I recently made a pong game, but never published or saved it. I think the script will work.

~~~
Gveradux  smile

Offline

 

#2 2010-06-27 06:34:59

addy107
Scratcher
Registered: 2009-01-10
Posts: 94

Re: Mouse moving script

One issue
[blocks]
<set y to(<mouse y>)
[blocks/]
should work


*Knock knock*/Whos there?/Scratch!/Scratch who?/Scratch Cat!

Offline

 

#3 2010-06-27 06:42:19

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: Mouse moving script

addy107 wrote:

One issue
[blocks]
<set y to(<mouse y>)
[blocks/]
should work

But that's a boring version...


I'd recommend
[blocks]
<change y by( ((  <mouse y> </> 20 ))
[/blocks]
So that it doesn't go crazy.


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

Board footer