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

#1 2012-07-21 20:24:41

humhumgames
Scratcher
Registered: 2012-03-26
Posts: 1000+

Opposite Direction of Mouse

How do you make a sprite go in the opposite direction of your mouse for a long way, and if it bumps into other sprites with the same script not get attached?

Offline

 

#2 2012-07-22 00:33:50

humhumgames
Scratcher
Registered: 2012-03-26
Posts: 1000+

Re: Opposite Direction of Mouse

Bump

Offline

 

#3 2012-07-22 00:36:06

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: Opposite Direction of Mouse

The mouse has no direction...
If your talking about coordinates, you can easily set a sprite to go to the opposite side of the screen by putting this:

forever
go to x: <(mouse x)*(-1)> y: <(mouse y)*(-1)>

Last edited by TorbyFork234 (2012-07-22 00:36:14)

Offline

 

#4 2012-07-22 00:40:04

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Opposite Direction of Mouse

You mean move away from mouse?

when gf clicked
forever
point towards [mouse pointer v]
turn cw [180] degrees
move [1] steps
end


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#5 2012-07-22 15:29:54

humhumgames
Scratcher
Registered: 2012-03-26
Posts: 1000+

Re: Opposite Direction of Mouse

Oh, yes! Thank you jji7skyline!!!!!!!!!!!!!!! I'm ecstatic now. ^^" Anyways, I'm gonna love-it one of your projects.

Offline

 

#6 2012-07-22 15:45:06

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Opposite Direction of Mouse

Closed by request.


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

Board footer