View Single Post
Old 03-10-07, 01:07 AM   #2
Deamon
Commodore
 
Join Date: Apr 2002
Location: Germany
Posts: 642
Downloads: 5
Uploads: 0


Default

Quote:
Code:
RotateEntity camera,Sin(MilliSecs()*.05)*.5,0,Sin(MilliSecs()*.05)*.5
However, with this I cannot use my mouse to look up and down, it stutters. And keeps it still. How can I use my Sin code but still have the full capabilities of my mouse look?
LOL

Chad use TurnEntity instead of RotateEntity becose RotateEntity set the view to an absolute angle while you want relative motion.

You basicaly had a conflict between this two lines of code:

Code:
RotateEntity camera,Sin(MilliSecs()*.05)*.5,0,Sin(MilliSecs()*.05)*.5

TurnEntity camera, MouseYSpeed()/5.0, 0, 0
Coding can be a bitch somtimes eh ?

Chad...

...your code is horrobly to read! lol

You should always leave an empty line betwin code segments and also put comments what a code segment is doing so that no one need to read all of the code to understand what it's supposed to do.

Enjoy

Last edited by Deamon; 03-10-07 at 01:18 AM.
Deamon is offline   Reply With Quote