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 Professional Discussion / Gravity, player spawn

Author
Message
ololo
14
Years of Service
User Offline
Joined: 16th Dec 2011
Location:
Posted: 16th Dec 2011 21:25
Hey!
Im really new to DBPro,and I like it very much!I wanted to import my fpsc level in DBPro and i tried-


But how do i make my player(camera...)spawn in the room?Not go through walls?Gravity?
Maybe those questions are really noobish...but I would really appreciate any help!
Maindric
16
Years of Service
User Offline
Joined: 22nd Jul 2009
Location:
Posted: 16th Dec 2011 23:47
It is not a straight up matter. You gotta effect the camera directly.

As for the not go through walls, you have to perform collision checks with the walls to ensure you aren't going through physical aspects.

As for gravity, do a check to see if your feet are on the ground if they are, done, if not, take current speed, and increase it downward by gravity.

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 17th Dec 2011 00:48 Edited at: 17th Dec 2011 14:56
If you look in DBPro Projects folder you will find a folder called First Person Game... from what I can see it loads FPSC levels so it should contain a collision function within

hope this helped...

EDIT

Correcting phone post errors

ololo
14
Years of Service
User Offline
Joined: 16th Dec 2011
Location:
Posted: 17th Dec 2011 09:26
Thanks for answering!
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 17th Dec 2011 14:57
did it help?

Login to post a reply

Server time is: 2026-07-09 21:19:23
Your offset time is: 2026-07-09 21:19:23