Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to stop a sprite from following the mouse!
- happypeeps1
-
12 posts
How to stop a sprite from following the mouse!
I am working on a project and I know how to follow a sprite with my mouse, but I tried to make stop moving when the mouse is clicked again!
Can someone help me please?

Can someone help me please?


Last edited by happypeeps1 (Aug. 22, 2015 11:06:11)
- Jconway1
-
77 posts
How to stop a sprite from following the mouse!
Try putting this code in the sprite you want following your mouse. What this does is makes the sprite follow your mouse until you click it (the wait until mouse is not down is so that whatever you want to happen after the mouse click will wait until your mouse press is fully up) Good luck
Last edited by Jconway1 (Oct. 31, 2016 07:05:29)
- TheGr8Coder123
-
7 posts
How to stop a sprite from following the mouse!
Making a game where this guy tries not to touch enemy but follows mouse pointer. How do I code that?
- codeman1044
-
1000+ posts
How to stop a sprite from following the mouse!
Please create your own topic if you have a question instead of necroposting. This topic is old and does not need any more posts on it. Making a game where this guy tries not to touch enemy but follows mouse pointer. How do I code that?
- XxShazammxX
-
100+ posts
How to stop a sprite from following the mouse!
Here's some useful code:
Should work
Should work

- potato_potato12334
-
2 posts
How to stop a sprite from following the mouse!
yes they are right

- Sonsun_aviation
-
9 posts
How to stop a sprite from following the mouse!
it doesn't work:- this code
- Sonsun_aviation
-
9 posts
How to stop a sprite from following the mouse!
use this just if you want to make your sprite follow you
- lolawb
-
1 post
How to stop a sprite from following the mouse!
should work.
Thank you so much!!
- deck26
-
1000+ posts
How to stop a sprite from following the mouse!
Please don't spam or necropost. hello
- Happy01130
-
2 posts
How to stop a sprite from following the mouse!
In this tutorial, we will explain how to make a sprite always be where the mouse is, follow the mouse indefinitely, if a button is pressed, if the mouse is too close to the sprite, or have the sprite follow at a distance.
Impression of Planet Proxima Centauri with New the stars, Centauri a and Centauri B - Information about Proxima Centauri .
Impression of Planet Proxima Centauri with New the stars, Centauri a and Centauri B - Information about Proxima Centauri .
Last edited by Happy01130 (Feb. 15, 2021 18:17:11)
- A_riordan
-
32 posts
How to stop a sprite from following the mouse!
Last edited by A_riordan (Feb. 15, 2021 20:15:55)
- bad_coder12
-
2 posts
How to stop a sprite from following the mouse!
here is how you can get it to stop when you are going to the scratch make a block. after that put a block under the one that spawns. under that put a follow mouse curser then put a stop all block down. change the all to other scripts in sprite
- v_sisodia
-
1 post
How to stop a sprite from following the mouse!
I'm making an adventure game and I want the sprite not to follow my mouse when instructions are given or in certain backdrops… I want it to stop automatically without the user having to press the mouse. Can someone help?
- legendary34678
-
1000+ posts
How to stop a sprite from following the mouse!
Hey there, please don't necropost on old topics. Thanks! If you have a question, instead, you should create your own topic.
- Discussion Forums
- » Help with Scripts
-
» How to stop a sprite from following the mouse!