Discuss Scratch

happypeeps1
Scratcher
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?

Last edited by happypeeps1 (Aug. 22, 2015 11:06:11)

CatsUnited
Scratcher
1000+ posts

How to stop a sprite from following the mouse!

repeatuntilsomething. . . your follow script. . . script to go to the correct spot
should work.
TheUnwantedBat
Scratcher
1 post

How to stop a sprite from following the mouse!

Dont get it
Jconway1
Scratcher
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

whenclickedrepeatuntiltouchingmouse?andmousedown?gotomousewaituntilnotmousedown?

Last edited by Jconway1 (Oct. 31, 2016 07:05:29)

TheGr8Coder123
Scratcher
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
Scratcher
1000+ posts

How to stop a sprite from following the mouse!

TheGr8Coder123 wrote:

Making a game where this guy tries not to touch enemy but follows mouse pointer. How do I code that?
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.
XxShazammxX
Scratcher
100+ posts

How to stop a sprite from following the mouse!

Here's some useful code:
whenclickedforeverrepeatuntiltouchingmouse pointer?andmousedown?gotomouse pointer

Should work
potato_potato12334
Scratcher
2 posts

How to stop a sprite from following the mouse!

yes they are right
Sonsun_aviation
Scratcher
9 posts

How to stop a sprite from following the mouse!

it doesn't work:- this code
whenkeypressedforeverstop
Sonsun_aviation
Scratcher
9 posts

How to stop a sprite from following the mouse!

use this just if you want to make your sprite follow you
whenclickedforevergotoMOUSE POINTER
lolawb
Scratcher
1 post

How to stop a sprite from following the mouse!

CatsUnited wrote:

repeatuntilsomething. . . your follow script. . . script to go to the correct spot
should work.

Thank you so much!!
V__Bean__V
Scratcher
1 post

How to stop a sprite from following the mouse!

bakugouortodoroki
Scratcher
2 posts

How to stop a sprite from following the mouse!

hello
deck26
Scratcher
1000+ posts

How to stop a sprite from following the mouse!

bakugouortodoroki wrote:

hello
Please don't spam or necropost.
Happy01130
New Scratcher
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 .

Last edited by Happy01130 (Feb. 15, 2021 18:17:11)

A_riordan
Scratcher
32 posts

How to stop a sprite from following the mouse!

whenclickedrepeatuntilmousedown?goto mouse pointer broadcast sprite stopped following mouse stop this script whenIreceive sprite stopped following mouse . . .

Last edited by A_riordan (Feb. 15, 2021 20:15:55)

bad_coder12
Scratcher
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
bad_coder12
Scratcher
2 posts

How to stop a sprite from following the mouse!

definewhen xkeypressedstop other scripts in sprite
v_sisodia
Scratcher
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
Scratcher
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.

Powered by DjangoBB