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

#1 2012-01-14 17:08:46

TheBajeebas
Scratcher
Registered: 2010-04-26
Posts: 1000+

Velocity Point-Towards-Mouse

anyone know how to do a point-towards-mouse script, but velocitized?

so it like glides to pointing at the mouse? :DD

Last edited by TheBajeebas (2012-01-14 17:08:54)


http://i.imgur.com/jOkeD.jpg

Offline

 

#2 2012-01-14 19:09:46

TheBajeebas
Scratcher
Registered: 2010-04-26
Posts: 1000+

Re: Velocity Point-Towards-Mouse

bump


http://i.imgur.com/jOkeD.jpg

Offline

 

#3 2012-01-14 19:13:18

G0D_M0D3
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Velocity Point-Towards-Mouse

Would you like both X and Y or just Velocity?

If velocity, I'll whip up a quick script for it.

If both X and Y, It'll take at least 3 mins.

Also, what makes it move towards the mouse? No trigger, just moving? Or mouse held down (which can be easily edited).

Last edited by G0D_M0D3 (2012-01-14 19:14:26)


I made a MC texture pack! Get it at planetminecraft!
http://i.imgur.com/0EG0u.png

Offline

 

#4 2012-01-14 19:17:08

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Velocity Point-Towards-Mouse

Is this what you were looking for?

http://cl.ly/2j092M3p3d2i3Z122U0L/Veloc … -Mouse.gif


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#5 2012-01-14 19:20:42

G0D_M0D3
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Velocity Point-Towards-Mouse

I think this should work for one velocity script, triggered by mouse: (picture link)


I made a MC texture pack! Get it at planetminecraft!
http://i.imgur.com/0EG0u.png

Offline

 

#6 2012-01-14 21:35:34

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: Velocity Point-Towards-Mouse

Just a moment, I understand what you need, have to write up the script.

Why does everyone else in this thread think you want a "glide to mouse" script?

EDIT:  Here you go:
http://img268.imageshack.us/img268/7695/scriptur.gif

And this project includes a script that uses "turn towards" as a constant speed, not velocity, which in all honesty looks smoother to me.
http://scratch.mit.edu/projects/Kileyme … st/1667713

Last edited by Kileymeister (2012-01-14 21:40:01)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#7 2012-01-14 21:55:58

TheBajeebas
Scratcher
Registered: 2010-04-26
Posts: 1000+

Re: Velocity Point-Towards-Mouse

Kileymeister wrote:

Just a moment, I understand what you need, have to write up the script.

Why does everyone else in this thread think you want a "glide to mouse" script?

EDIT:  Here you go:
http://img268.imageshack.us/img268/7695/scriptur.gif

And this project includes a script that uses "turn towards" as a constant speed, not velocity, which in all honesty looks smoother to me.
http://scratch.mit.edu/projects/Kileyme … st/1667713

Yeah I wanted a turn towards, not glide to mouse.  big_smile  Thanks.


http://i.imgur.com/jOkeD.jpg

Offline

 

Board footer