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 / Having issues getting camera at correct starting point

Author
Message
Chilcix
4
Years of Service
User Offline
Joined: 7th May 2015
Location:
Posted: 13th May 2015 03:57 Edited at: 13th May 2015 13:54
I have a game that I created using FPS Creator and then imported it into DBPro. After trying many times I couldn't position the camera where the start of the level is. The camera spawns below the level, I just can't get the camera into it. Any help would be appreciated.

Here is my current code:


And here is the entire game folder:
https://drive.google.com/folderview?id=0B5kLgn-x_D4HflZheEVBM1lTR2FiazRMRzg0MFpScTRrQVFmQ1BNTVg4Wi14QVRHRFpPdjA&usp=sharing

Update:

I was able to figure it out by using the lovely search function.

Here is my code now:


However I do have a few questions.

My first one would be using my above code, how do I get the X, Y, and Z positions to update while the camera moves?


Is it possible to make the objects that I loaded into DBPro from FPS Creator have collision so the camera does not go through them?

Thanks,
Travis
WickedX
10
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 14th May 2015 02:08 Edited at: 14th May 2015 02:09
Quote: "My first one would be using my above code, how do I get the X, Y, and Z positions to update while the camera moves?"


Remove the do/loop surrounding - Control Camera Using Arrowkeys.

Quote: "Is it possible to make the objects that I loaded into DBPro from FPS Creator have collision so the camera does not go through them? "


Yes, it's possible. The attached demo, loads a FPS Creator level with shaders, lightmapping and collision.

Attachments

Login to view attachments
LBFN
12
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 14th May 2015 03:27
WickedX, I've seen that demo before and it is awesome.

So many games to code.....so little time.
WickedX
10
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 14th May 2015 04:02
Thank you, LBFN. I thought I posted the code on another thread, just didn't remember where.

Login to post a reply

Server time is: 2019-10-18 00:54:42
Your offset time is: 2019-10-18 00:54:42