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 / Camera left and right

Author
Message
Gamedesign er20
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: The one place you would never look...
Posted: 5th Sep 2006 23:47
I know how to move the camera forward and backward using the move camera command, but how do I move the camera left and right, as if you were strafing?

Cocacola and Pepsi aren't that differnt. Deal with it.
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 5th Sep 2006 23:57
One cheating way without using any maths is;

turn camera left 90
move camera 5
turn camera right 90

Boo!
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 6th Sep 2006 00:17
Use the POSITION CAMERA command.

You can position the camera anywhere regardless of it's orientation (which way it's pointing).

Enjoy your day.
Gamedesign er20
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: The one place you would never look...
Posted: 6th Sep 2006 00:37
I tried using the position command with this code, but it didn't work. Could you tell me what went wrong?



Cocacola and Pepsi aren't that differnt. Deal with it.
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 6th Sep 2006 01:32
cpx# was never being assigned a new value (it never changed).



Prosaic
18
Years of Service
User Offline
Joined: 5th Aug 2006
Location: Athens
Posted: 6th Sep 2006 01:43
this is without remembering 3d position...

not recommended.
Gamedesign er20
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: The one place you would never look...
Posted: 6th Sep 2006 02:12
Here is my code



@Daemon
I used your code to see how it works and i can move side to side but not forward or backward. How can i fix that so i can do both?

Cocacola and Pepsi aren't that differnt. Deal with it.
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 6th Sep 2006 03:37
You do the same thing as left and right, but with the z axis now.



Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 6th Sep 2006 03:47 Edited at: 6th Sep 2006 03:47
Here, I'll make a function for you

Pssh you guys don't know any math


'Cam' is the camera number.
'LR#' stands for 'left or right'. To move left, specify a negative number. To move right, specify a positive number. The lower the negative number, the more you move left. The higher the positive number, the more you go right.

Hope you understand!




-Xeno


EDIT: I'l post this in code snippets


Rogue Sniper
18
Years of Service
User Offline
Joined: 13th Jul 2006
Location: some place in oregon...sadly...oregon...
Posted: 6th Sep 2006 04:17
heres some code for straffing however it envolves an object but is hidden

(i hope i did the code snippet right to get it on here...)


AMD Athlon 3200MHz/~2200MHz 32-Bit , 1G Memory, NVIDIA GeForce FX 5600 128 mb, Direct x 9.0c software ~ Direct X 8.0 hardware, 160GB HD space
Gamedesign er20
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: The one place you would never look...
Posted: 6th Sep 2006 20:20
Thank you everyone who helped me it turns out my darkBASIC wasn't working right, so i had to reinstall it(it's fine now) but thank you everyone for helping me out

Cocacola and Pepsi aren't that differnt. Deal with it.

Login to post a reply

Server time is: 2024-11-27 07:55:22
Your offset time is: 2024-11-27 07:55:22