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 / A little help with Camera movemnt

Author
Message
Xyo
20
Years of Service
User Offline
Joined: 12th Apr 2004
Location: ENgland
Posted: 15th Apr 2004 14:34 Edited at: 15th Apr 2004 14:53
Im working on an FPS, im quite new to darkbsaic but not the basic language.
So 3d is new to me.

I just want to know how i could implement strafing..
I tried assignig camera position y to a variable and incrememnting it if a/d is pressed but it didnt work.



Oh and my camera is controlled by the mouse (my bro FIDO taught me it)

Oh and I'm using DBPro

Thanks For Your Help

--Xyo--
hyrichter
20
Years of Service
User Offline
Joined: 15th Feb 2004
Location: Arizona
Posted: 15th Apr 2004 15:54
I only have DBC, but this should work for Pro. I also assume you're probably using a matrix.



I hope this works.
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 15th Apr 2004 16:08
or just



In the beginning, the universe was created...
This made alot of people very angry and it has been widely regarded as a bad idea...
Visit http://redeye.dbspot.com
Xyo
20
Years of Service
User Offline
Joined: 12th Apr 2004
Location: ENgland
Posted: 15th Apr 2004 17:03
Thanks man that was a huge help.

I forgot about wrapvalues
Lord Helmet
21
Years of Service
User Offline
Joined: 30th May 2003
Location:
Posted: 16th Apr 2004 01:38
Hey Red eye, I'm using basicly the same code do move over the matrix as you just said in my program but it doesn't work, as I move with the arrow keys the camera either shoots up or down depending on what direction I move. I think it has to do with the fact that get ground height returns a Float rather than a number. A float is mathmatical notation like 10 to the 4th power times 3.15 is 31500. I don't know how to use a float return though.

Login to post a reply

Server time is: 2024-09-22 05:54:07
Your offset time is: 2024-09-22 05:54:07