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 / How do you do First-Person View

Author
Message
WoW is WOW
21
Years of Service
User Offline
Joined: 21st Jun 2003
Location: Australia
Posted: 25th Oct 2003 11:47
How do you make the camera in First-Person View and that when the mouse moves the camera follows. You know Mouse Look.
Thanx.
RPG_Freak.
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 25th Oct 2003 17:26
use the FPS tutorial from the manual for DBP - it will show you MouseLook. I altered the arrow keys for strafing as opposed to pivot.

-RUST-
Guitar_M
21
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 25th Oct 2003 18:24
it is pretty simple ok, i dont if i put everything right but i have to go to my gf's right now

Derek miller
Guitar_M
21
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 25th Oct 2003 18:25

rem Setup environment
hide mouse
sync rate 30
autocam off
sync on
rem u can change 15 to any number u want (basically saying that tells u how many cubes there are
For x = 1 to 15
Make object cube x,100
Position object x,Rnd(2000),0,Rnd(2000)
Next x
Rem Main loop
Do

caY#= Camera angle Y()
Rem make keys to make camera move
If Upkey()=1 then Move camera 10
If Leftkey()=1 then Yrotate Camera Wrapvalue(caY#-5)
If Rightkey()=1 then Yrotate Camera Wrapvalue(caY#+5)
Rem Refresh Screen
Sync
Loop

For x = 1 to 5
Make object cube x,100
Position object x,Rnd(2000),0,Rnd(2000)
Next x

this is the code

Derek miller

Login to post a reply

Server time is: 2024-11-25 14:36:53
Your offset time is: 2024-11-25 14:36:53