mouse follower
Author |
Message |
Homer_simpson
![](http://compsci.ca/v3/uploads/user_avatars/18138546704b4d2a3b2e50e.gif)
|
Posted: Tue May 06, 2003 4:02 pm Post subject: mouse follower |
|
|
k i'm trying to make a program that makes one point follow another point with random coordinates(for example a small circle follow mouse)
in the attachment i got a circle follow the mouse but it's not very...smooth.
to make it smooth i think that i should use the slope of the line with coordinates (mousex,mousey,objx,objy) which will be
slope:=(mousey-objy)/(mousex-objx)
but i dunno how to use it in turing =/
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
follower.t |
Filesize: |
747 Bytes |
Downloaded: |
489 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Homer_simpson
![](http://compsci.ca/v3/uploads/user_avatars/18138546704b4d2a3b2e50e.gif)
|
Posted: Tue May 06, 2003 4:42 pm Post subject: (No subject) |
|
|
nvm just solved it
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
follower.t |
Filesize: |
669 Bytes |
Downloaded: |
525 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
Dan
![](http://wiki.compsci.ca/images/archive/3/3c/20100325043407!Danspic.gif)
|
Posted: Tue May 06, 2003 5:07 pm Post subject: (No subject) |
|
|
man homer you shure do awser your own posts alot, lol.
but it is good to have problems and slotions posted so in the end it is a good thing .
|
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
![](images/spacer.gif) |
Homer_simpson
![](http://compsci.ca/v3/uploads/user_avatars/18138546704b4d2a3b2e50e.gif)
|
Posted: Wed May 07, 2003 7:32 am Post subject: (No subject) |
|
|
that's not how it is man...
i have a problem i work on it for like 30 to 60 mins...then i cant solve and go watch tv... suddenly when i'm watching the simpsons something comes to my mind i come back and try it and works =Þ
|
|
|
|
|
![](images/spacer.gif) |
Prince
![](http://www.angelfire.com/hiphop3/m-unit_hustla/images/fxckpare.jpg)
|
Posted: Wed May 07, 2003 9:42 am Post subject: (No subject) |
|
|
lol, i should try that
|
|
|
|
|
![](images/spacer.gif) |
|
|