Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do i make my character follow the cursor
- coder9902htm4a0
-
51 posts
How do i make my character follow the cursor
I want to make my character follow my cursor how do i do it?
- AonymousGuy
-
1000+ posts
How do i make my character follow the cursor
Will simulate a dragging effect.
But,
Will make the character move towards the mouse pointer from its current position.
Hope this helps!
- coder9902htm4a0
-
51 posts
How do i make my character follow the cursor
Never mind,i figured it out, but thanks!Will simulate a dragging effect.
But,Will make the character move towards the mouse pointer from its current position.
Hope this helps!
- platypusProductions
-
1 post
How do i make my character follow the cursor
I used AonymousGuy's script for following but the sprite spazes if it gets too close. I'd like to fix that but I don't know how! Please help.
- coder9902htm4a0
-
51 posts
How do i make my character follow the cursor
Well, if I understand correctly, as far as i'm concerned there's not really a workaround to that I used AonymousGuy's script for following but the sprite spazes if it gets too close. I'd like to fix that but I don't know how! Please help.

- drmcw
-
1000+ posts
How do i make my character follow the cursor
I used AonymousGuy's script for following but the sprite spazes if it gets too close. I'd like to fix that but I don't know how! Please help.
Last edited by drmcw (Dec. 6, 2013 21:38:58)
- owlpillow
-
49 posts
How do i make my character follow the cursor
by the way, if you want it on the cursor
forever loop
set x to mouse x
set y to mouse y
forever loop
forever loop
set x to mouse x
set y to mouse y
forever loop
- Failord
-
1000+ posts
How do i make my character follow the cursor
Here's a couple of smoother-looking, less glitchy ways:
^This allows it to follow smoothly without turning. You can't adjust the speed, unfortunately.
If you want to adjust speed and point towards the mouse, use this:
You can also use these for following sprites as well. The /2 in the second script can be adjusted to control follow speed. If you want your sprite not to turn, set the rotation style to “don't rotate.”
Hope this helped!
^This allows it to follow smoothly without turning. You can't adjust the speed, unfortunately.
If you want to adjust speed and point towards the mouse, use this:
You can also use these for following sprites as well. The /2 in the second script can be adjusted to control follow speed. If you want your sprite not to turn, set the rotation style to “don't rotate.”
Hope this helped!
- Failord
-
1000+ posts
How do i make my character follow the cursor
by the way, if you want it on the cursor
forever loop
set x to mouse x
set y to mouse y
forever loop
You mean,
?
- ARM32
-
38 posts
How do i make my character follow the cursor
I used AonymousGuy's script for following but the sprite spazes if it gets too close. I'd like to fix that but I don't know how! Please help.
How to fix that is do this:
- AonymousGuy
-
1000+ posts
How do i make my character follow the cursor
I used AonymousGuy's script for following but the sprite spazes if it gets too close. I'd like to fix that but I don't know how! Please help.
EDIT: Oops, used less than instead of greater than. Fixed!
Last edited by AonymousGuy (Dec. 9, 2013 00:11:33)
- scubajerry
-
1000+ posts
How do i make my character follow the cursor
I used AonymousGuy's script for following but the sprite spazes if it gets too close. I'd like to fix that but I don't know how! Please help.
Fixed
- skullboy22
-
99 posts
How do i make my character follow the cursor
if you want to make it follow the mouse pointer do it how I did cuz its less complicated
Last edited by skullboy22 (Dec. 8, 2013 22:04:55)
- Polaris10
-
63 posts
How do i make my character follow the cursor
“I want to make my character follow my cursor. Can someone please tell me how i do it?”
Last edited by Polaris10 (July 7, 2015 22:12:05)
- CatsUnited
-
1000+ posts
How do i make my character follow the cursor
Please don't necropost.
- Discussion Forums
- » Help with Scripts
-
» How do i make my character follow the cursor