Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
tracking the mouse
Old
shiohigari
Junior Member
 
Status: Offline
Posts: 1
Join Date: Jun 2012
Default tracking the mouse - 06-06-2012, 12:16 AM

I am trying to have a character track the mouse no matter where i put it.

To do this i am going to have the distance from the top and left of the screen saved in variables and then compare them in some sort of function to spit out a number that i can rotate the character by.

I'm thinking i need some sort of arctan function for this but i can't work out how to do it, my maths isnt that great.

If anyone can figure it out or suggest another way that would be great.

The camera is looking top down at the character.
   
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2021, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.