Discuss Scratch

BSSCodeClub1
New Scratcher
1 post

sprite won't follow mouse pointer

My Code Clubbers are having problems with trying to get our boat sprite following the mouse pointer. The boat moves in a straight line and totally ignores the mouse pointer. Here is the script we are using:
when green flag clicked
point in direction ( 0)
go to x: (-190) y: (-150)
forever
point towards
move (1) steps
end
We can't see what we are doing wrong. Any ideas?
drmcw
Scratcher
1000+ posts

sprite won't follow mouse pointer

There is a known problem in Scratch with the
pointtowardsmouse-pointer
block; to fix it just reselect mouse-pointer from the block's drop down menu.
HCC_Man
Scratcher
10 posts

sprite won't follow mouse pointer

BSSCodeClub can u send me the game and ill look at the code
drmcw
Scratcher
1000+ posts

sprite won't follow mouse pointer

HCC_Man wrote:

BSSCodeClub can u send me the game and ill look at the code
Here you go https://scratch.mit.edu/projects/120077769/ you cans ee the bug in action and fix as suggested if you like
HCC_Man
Scratcher
10 posts

sprite won't follow mouse pointer

all i did was click the mouse pointer and reselected mouse pointer and then it was working

(remember to save it if it works)
cs1922313
Scratcher
1 post

sprite won't follow mouse pointer

I'm having a problem with my sprite following the mouse pointer. it's following it but the mouse pointer needs to be far away from the sprite for it to move. I'm bad at explaining things so if you need me to say it again let me know.
deck26
Scratcher
1000+ posts

sprite won't follow mouse pointer

cs1922313 wrote:

I'm having a problem with my sprite following the mouse pointer. it's following it but the mouse pointer needs to be far away from the sprite for it to move. I'm bad at explaining things so if you need me to say it again let me know.
Please create your own new topic rather than necroposting and share the project.

Last edited by deck26 (Nov. 20, 2018 10:48:33)

ijstannes
Scratcher
9 posts

sprite won't follow mouse pointer

Hello there I found out the way to stop this problem here it is
whenclickedpointtowards mouse pointer move10stepsiftouching mouse pointer?thenrepeatuntilnottouching mouse pointer?move-10stepsifonedge,bounce

Last edited by ijstannes (Jan. 11, 2019 08:23:45)

allison_dandar_cnhm
Scratcher
1 post

sprite won't follow mouse pointer

My problem is, the sprite is centered and right side up, and it is following my sprite withit's butt towards me, not it's head. Any help?
Anonymous1212144
Scratcher
100+ posts

sprite won't follow mouse pointer

allison_dandar_cnhm wrote:

My problem is, the sprite is centered and right side up, and it is following my sprite withit's butt towards me, not it's head. Any help?
Flip the sprite around.
DerpyHead0
Scratcher
1000+ posts

sprite won't follow mouse pointer

allison_dandar_cnhm wrote:

My problem is, the sprite is centered and right side up, and it is following my sprite withit's butt towards me, not it's head. Any help?
don't necropost, this topic was made in 2016. also, don't hijack threads, if you have a question, make your own.
Joobyjuice
New Scratcher
1 post

sprite won't follow mouse pointer

help
joshuaho
Scratcher
1000+ posts

sprite won't follow mouse pointer

Joobyjuice wrote:

help
Hi there - and welcome to the Scratch forums!

If you need help on your project scripts, then please feel free to make a new topic in the Help with Scripts forum.

If you have a general question about Scratch, then please create a new topic in the Questions about Scratch forum.

Last edited by joshuaho (July 17, 2020 14:44:07)

Powered by DjangoBB