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 / CONTROL CAMERA USING ARROW KEYS

Author
Message
ryansobol
23
Years of Service
User Offline
Joined: 20th May 2003
Location:
Posted: 4th Sep 2003 17:45
Im having some issues with this command after loading a BSP map into our game. basically its not working! What it does instead is re-adjust the camera direction and position of the camera once and then not accept arrow key inputs. What am I missing? Can someone post a quick snipet that successfully uses this command?
Arius Myst
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 4th Sep 2003 18:17


¥öü ®å§Ë tHË ß|å�Ë, ¥öü måkË tHË ÇHåñgË, ¥öü ®Ëå®åñgË mË tî|| î'm §åñË
Gardocki
23
Years of Service
User Offline
Joined: 31st Oct 2002
Location:
Posted: 4th Sep 2003 18:33
Make sure your command is inside the main Do Loop
CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 4th Sep 2003 20:50
ya, inside your loop

-RUST-
ryansobol
23
Years of Service
User Offline
Joined: 20th May 2003
Location:
Posted: 5th Sep 2003 04:40
Great! I didnt have the command in the main loop. I knew i was doing something wrong! One follow up question:

How well does the PITCH CAMERA command work with the CONTROL CAMERA USING ARROWKEYS command? So far Im experiencing some weird effects when I try to pitch the camera using two other keys "a and z" while moving the camera with the keyboard. It seems that the PITCH CAMERA command is changing the camera direction back to some default direction when i let go of the key I bound it too. Any help?
Arius Myst
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 5th Sep 2003 13:54 Edited at: 5th Sep 2003 14:07
I don't actually use the control camera with arrowkeys command. Its much easier to write it yourself. Then use the mouse for pitch. Check out the FPS tutorial in the help if you don't know how to do that.



I havent tested the code so i may have forgotten something. But you get the idea.

¥öü ®å§Ë tHË ß|å�Ë, ¥öü måkË tHË ÇHåñgË, ¥öü ®Ëå®åñgË mË tî|| î'm §åñË
ryansobol
23
Years of Service
User Offline
Joined: 20th May 2003
Location:
Posted: 6th Sep 2003 20:57
i will try that out later today. i figured i could just write my own camera control with individual DBPro commands. But when I saw the CONTROL CAMERA USING ARROWKEYS commands, i wanted to see if there were any advantage with it. Obviously not.

Login to post a reply

Server time is: 2026-07-23 14:56:18
Your offset time is: 2026-07-23 14:56:18