This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-04-28 14:44:18

xbox360andpie
New Scratcher
Registered: 2011-09-17
Posts: 78

Follow The Mouse

I cannot figure out how you can have a certain sprite follow the mouse's exact movements. I've seen it in some games, where like it's moving a scope to shoot or such. Can someone tell me how you can do this?

Offline

 

#2 2012-04-28 14:56:41

CheeseMunchy
Scratcher
Registered: 2008-10-13
Posts: 1000+

Re: Follow The Mouse

when gf clicked
forever
go to [mouse-pointer v]
end
or
when gf clicked
forever
go to x: (mouse x) y: (mouse y)
end

Last edited by CheeseMunchy (2012-04-28 14:58:16)


6418,

Offline

 

#3 2012-04-28 14:57:10

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Follow The Mouse

You mean if the mouse movves 5 steps up, the other sprite moves 5 steps up, or the other sprite tries to get to whereever the mouse is?


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#4 2012-04-28 14:57:40

xbox360andpie
New Scratcher
Registered: 2011-09-17
Posts: 78

Re: Follow The Mouse

CheeseMunchy wrote:

when gf clicked
forever
go to x: (mouse x) y: (mouse y)
end

Thanks Really Helped

Offline

 

#5 2012-04-29 15:47:43

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Follow The Mouse

I i thought you meant a mouse animal.  Sorry.   tongue


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

Board footer