Computer Science Canada

mouse follower

Author:  Homer_simpson [ 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 =/

Author:  Homer_simpson [ Tue May 06, 2003 4:42 pm ]
Post subject: 

nvm just solved it Very Happy

Author:  Dan [ Tue May 06, 2003 5:07 pm ]
Post 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 Wink .

Author:  Homer_simpson [ Wed May 07, 2003 7:32 am ]
Post 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 =Þ

Author:  Prince [ Wed May 07, 2003 9:42 am ]
Post subject: 

lol, i should try that


: