Page 1 of 1

Character Rotation

Posted: 15 Feb 2012, 21:46
by Gokhan137Cp
Hello! I've been researching codes online and that type of stuff on character rotation. The thing is that I still can't find out how, so I was wondering could somebody tell me how to rotate the character with your mouse as shown in many virtual worlds?

Re: Character Rotation

Posted: 15 Feb 2012, 22:38
by rjgtav
Hi.

I'm sorry but your question isn't related with SFS at all. What you're asking is done completely on the client-side, which means, you don't need to do anything on the server-side. For rotating the character in such a way it is pointing to the mouse, you have to use some trigonometry. Unfortunately these forums are just for server-side help, so you have to use other sources (like Google, stackoverflow, etc.) to find the answers to this questions.

Good Luck :)

Re: Character Rotation

Posted: 02 Apr 2012, 04:18
by iCPblog
Hello!

You're question is not SFS Related! But, You can always contact me on my twitter, And i can help! =)
-iCPblog

Re: Character Rotation

Posted: 02 Apr 2012, 10:39
by reecedogcp78
Not SFS Related, however you could store the character position/rotation In a variable.