Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Mouse
- Failord
-
1000+ posts
Mouse
forever
go to mousepointer
Actually,
forever
point towards mousepointer
move (10) steps
end
or if you want to get slightly more complicated,
forever
point towards mousepointer
if <not <touching mousepointer>>
move (10) steps
end
end
- lalala3
-
100+ posts
Mouse
Or, if you want to get even more complicated,forever
go to mousepointer
Actually,
forever
point towards mousepointer
move (10) steps
end
or if you want to get slightly more complicated,
forever
point towards mousepointer
if <not <touching mousepointer>>
move (10) steps
end
end
forever
point towards mousepointer
if<distance to mousepointer < 10>
move (distance to mousepointer) steps
else
move (10) steps
end
end
Well, that's “follow”. If you want it to just go to the same location as the mouse, use drmcw's method.
- Failord
-
1000+ posts
Mouse
more complicated,Or, if you want to get even
forever
point towards mousepointer
if<distance to mousepointer < 10>
move (distance to mousepointer) steps
else
move (10) steps
end
end
Well, that's “follow”. If you want it to just go to the same location as the mouse, use drmcw's method.
Yup. That works as well. And it was explained better.

- alexphan
-
1000+ posts
Mouse
http://mv.ezproxy.com.ezproxyberklee.flo.org/wiki/Making_a_Sprite_Follow_the_Mouse
I hope the link helps!
I hope the link helps!

- Discussion Forums
- » Help with Scripts
-
» Mouse