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 / setting up a FPS

Author
Message
mo2970
18
Years of Service
User Offline
Joined: 10th Jun 2006
Location:
Posted: 15th Jun 2006 11:34
i really don't know where to start, i have an environment and its in .dbo format. i need someone to help me set up the camera for an FPS and load this .dbo. i know its a lot to ask but i need the help.
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 15th Jun 2006 18:25
To load a .dbo just use "load object "world.dbo",1" (replacing world.dbo with the actual file name, and you don't have to make it object 1)

To set up the camera you will want to learn to use the following commands-

move camera
rotate camera
xrotate camera
yrotate camera
mousemovex()
mousemovey()
upkey()
downkey()
leftkey()
rightkey()

For collision you will probably want to get sparky's dll.

Insanity is just a state of mind
Heckno
20
Years of Service
User Offline
Joined: 8th Sep 2004
Location: Palm Coast, FL
Posted: 15th Jun 2006 18:50
have you tried looking at the monster hunt tutorial on this website?

Good place to start to understand the basics of FPS which you can expand on as you become more familiar with DB...



just a quick example of how to do the basics...
mo2970
18
Years of Service
User Offline
Joined: 10th Jun 2006
Location:
Posted: 15th Jun 2006 20:12
oh ok thanks u guys
mo2970
18
Years of Service
User Offline
Joined: 10th Jun 2006
Location:
Posted: 15th Jun 2006 20:26
oh thank u, is there a way to make it as the arrow keys move the cam and shift+arrow keys rotate it?
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 16th Jun 2006 00:06 Edited at: 16th Jun 2006 00:15
You don't have to make camera 1. You could just use camera 0.

This is how I usually control the camera, with the mouse to rotate-



but if you want to you could do what you said like this-



Insanity is just a state of mind
mo2970
18
Years of Service
User Offline
Joined: 10th Jun 2006
Location:
Posted: 16th Jun 2006 00:22
thank you and how would u choose where u want the camera to start?
tiffer
18
Years of Service
User Offline
Joined: 6th Apr 2006
Location: Scotland
Posted: 16th Jun 2006 01:22
you can just position the camera using position camera x,y,z and then rotate it to face a direction

so for example


Note that the camera's y should be the size of the character +ground height

Cwatson
Coder#05
18
Years of Service
User Offline
Joined: 26th Oct 2005
Location: Denmark
Posted: 16th Jun 2006 03:00 Edited at: 16th Jun 2006 03:01
Sorry couldn't resist to post this:
but, have you even looked in the help files?
(there is a tut on creating a fps in the help files)
If this is the first thing you are trying to create, then i would suggest you to start a simpler game than an fps(even if its just a very basic fps), But then again, yes it is very tempting to start a project like that.
God luck to you

easy comes easy goes

Login to post a reply

Server time is: 2024-09-25 01:36:01
Your offset time is: 2024-09-25 01:36:01