Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 mouse follower
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Homer_simpson




PostPosted: 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 =/



follower.t
 Description:

Download
 Filename:  follower.t
 Filesize:  747 Bytes
 Downloaded:  466 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Homer_simpson




PostPosted: Tue May 06, 2003 4:42 pm   Post subject: (No subject)

nvm just solved it Very Happy


follower.t
 Description:

Download
 Filename:  follower.t
 Filesize:  669 Bytes
 Downloaded:  507 Time(s)

Dan




PostPosted: 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 Wink .
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Homer_simpson




PostPosted: 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 =Þ
Prince




PostPosted: Wed May 07, 2003 9:42 am   Post subject: (No subject)

lol, i should try that
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: