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 / Controlling camera with mouse help

Author
Message
Cretinous
19
Years of Service
User Offline
Joined: 10th Mar 2005
Location:
Posted: 11th May 2005 04:49
I'm using the mouse to control where a camera points: using a code like;]

This code works great but how do I stop it being able to look fully down or do full loops (go round 360 degrees). I am using Dark Basic Pro.

-------------------------------------------
----- HTTP://WWW.CRETINOUS.TK -----
-------------------------------------------
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 11th May 2005 05:30
x#=x#+mousemovey() : y#=y#+mousemovex()
if x# > 75 then x#=75
if x# < -75 then x#=-75
rotate camera x#,y#,0

or something similar?

Cretinous
19
Years of Service
User Offline
Joined: 10th Mar 2005
Location:
Posted: 12th May 2005 01:36
Thanks it was a big help

-------------------------------------------
----- HTTP://WWW.CRETINOUS.TK -----
-------------------------------------------

Login to post a reply

Server time is: 2024-09-23 19:34:37
Your offset time is: 2024-09-23 19:34:37