Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / First person mouselook help needed

Author
Message
CocaCola
16
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 15th Jan 2011 09:57
Hello all, I am back =P I've been gone for a bit.
Anyway I need the left and right arrow keys to move the camera left and right then to save the position so it can rotate it that way, it works expect it won't keep turning, it'l only turn either 3 or -3 and it wont go to like 6 or -6 or anything.



Always program as if the person maintaining your program is a psychopath that knows where you live
kamac
15
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 15th Jan 2011 12:39 Edited at: 15th Jan 2011 12:40
It's because rotate camera rotates it by an angle. So if you type 3 it will move it to angle by 3. If you will try that again, it will not move, because these values aren't relative to itselves.




That should work


Ps. If it will be rotating too fast, decrease 0.5 to any less value.

Cheers!

~Kamac
CocaCola
16
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 15th Jan 2011 18:06 Edited at: 15th Jan 2011 19:09
Ok, thank you, it works perfectly with minor adjustments.

Always program as if the person maintaining your program is a psychopath that knows where you live

Login to post a reply

Server time is: 2026-07-21 15:13:58
Your offset time is: 2026-07-21 15:13:58