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.

Newcomers DBPro Corner / Fps Camera

Author
Message
Mougli
20
Years of Service
User Offline
Joined: 10th Dec 2003
Location: United Kingdom
Posted: 13th Jan 2004 16:05
im makin an fps and i got quite far into the code until i realized you can spin the camera all the way round,i.e if you keep moving the mouse down the camera spins the full 360 degrees.i want it stop at certain angle like in proper games anyone know how to do this?

Is the glass half empty - or half full?
you can have it all - Just not all at once
Rage
21
Years of Service
User Offline
Joined: 9th Nov 2003
Location:
Posted: 13th Jan 2004 16:20 Edited at: 13th Jan 2004 16:24
use something like:

cx#=wrapvalue(cx#+(mousemovey()*0.23))
cy#=wrapvalue(cy#+(mousemovex()*0.23))
cz#=wrapvalue(cz#+(mousemovez()*0.23))
if cx#<=290 and cx#>=180 then cx#=290
if cx#>=70 and cx#<=180 then cx#=70




http://galeon.com/rsniper/temp/part01.zip
http://galeon.com/rsniper/temp/part02.zip
http://galeon.com/rsniper/temp/part03.zip
Mougli
20
Years of Service
User Offline
Joined: 10th Dec 2003
Location: United Kingdom
Posted: 14th Jan 2004 10:34 Edited at: 14th Jan 2004 10:36
Thanks rage havent tried it yet cos im at college ,but i can see how it works.

Is the glass half empty - or half full?
you can have it all - Just not all at once

Login to post a reply

Server time is: 2024-11-26 01:27:58
Your offset time is: 2024-11-26 01:27:58