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 Discussion / Moving the camera

Author
Message
michael m91
19
Years of Service
User Offline
Joined: 16th Aug 2005
Location:
Posted: 19th Sep 2005 03:46
I need to nkow really fast how to move the camera left and right not forard and backward.

Sorta strafing

..............Yesturday's Tommorow is Today's Today
Leeorg
19
Years of Service
User Offline
Joined: 5th Jul 2005
Location:
Posted: 19th Sep 2005 08:59
Here is how I might try to do it:

TURN CAMERA LEFT 90
MOVE CAMERA 0.2
TURN CAMERA RIGHT 90
SYNC

and to go right just reverse the above.
That way you don't have to worry about camerq co-ordinates
Let me know if it works pls, always useful to know little snippets like this - especially if they do work.
Yours
Lee
dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 20th Sep 2005 02:30
Quote: " need to nkow really fast how to "


That sounds familiar.....oh wait! I did that also!! (the I need to know really fast thing).

------------------------
Visit my website of games
http://www.dabip.co.nr!
NathanF
21
Years of Service
User Offline
Joined: 24th Mar 2004
Location:
Posted: 20th Sep 2005 15:36 Edited at: 20th Sep 2005 15:37
Or something like this:

left:
cx#=newxvalue(camera position x(),wrapvalue(camera angle y()-90),10)
cz#=newzvalue(camera position z(),wrapvalue(camera angle y()-90),10)
position camera cx#,camera position y(), cz#

right:
cx#=newxvalue(camera position x(),wrapvalue(camera angle y()+90),10)
cz#=newzvalue(camera position z(),wrapvalue(camera angle y()+90),10)
position camera cx#,camera position y(), cz#

...it should work.

Login to post a reply

Server time is: 2025-05-22 13:31:26
Your offset time is: 2025-05-22 13:31:26