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 / Moving the gun along with the camera?

Author
Message
Woarther
14
Years of Service
User Offline
Joined: 21st Feb 2010
Location: Sweden
Posted: 21st Feb 2010 10:03
Hello!

I've just been playing around with darkBasic for the last couple of days, browsing tutoials and example code. To learn more, I wanted to create a simple FPS, but I got stuck on the "gun movement". How would I do to make my gun not go out of screen when I look around with the mouse?



Thanks in advance!
NightX
15
Years of Service
User Offline
Joined: 3rd Apr 2009
Location: Australia, QueensLand
Posted: 21st Feb 2010 12:54 Edited at: 21st Feb 2010 13:01
Just search around the forums. I found this ->



Lock object on is the magical command.

Woarther
14
Years of Service
User Offline
Joined: 21st Feb 2010
Location: Sweden
Posted: 21st Feb 2010 13:49
Strange.. I remember trying that command yesterday with no success. Nevertheless, it worked now! Thank you!
NightX
15
Years of Service
User Offline
Joined: 3rd Apr 2009
Location: Australia, QueensLand
Posted: 21st Feb 2010 14:29
No problem

Login to post a reply

Server time is: 2024-11-23 19:51:15
Your offset time is: 2024-11-23 19:51:15