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 / camera and map info needed

Author
Message
sadsack
21
Years of Service
User Offline
Joined: 27th Nov 2003
Location: here
Posted: 9th Apr 2004 04:03
hello,
Well my civil war game is coming along. But some thing that happen
that I did not count on. (big news when you don't know what you are doing) I made a plane and texture it with my map (object1).
then I put a 3d object a man (object2) on my map. I the put the camera looking vertical down on the map amd man. than I used move object code. that moved the plain right, good it worked fine... bad the man did not move. I looked all over the place to find camera
comm. that will move the camera up down right and left. Now up and down is not moving into the map or a way from the map I want the camera to move like north south east and west. Is there a way of doing this. this is going be a 3d game that looks like a 2D one.
as all way thanks for you help renny
walaber
21
Years of Service
User Offline
Joined: 22nd Oct 2003
Location: Los Angeles, CA
Posted: 9th Apr 2004 06:30 Edited at: 9th Apr 2004 06:33
make 3 variables for your camera: camx#, camy#, camz#.

at the top of your program, try this:


then,

change the variables with the key commands like you are now:


then, at the bottom of your loop, put:

position camera camx#,camy#,camz#


that should get you started!

NOTE: the move camera command moves the camera in the direction it is FACING. also you might need to rotate the plain object so it's on the ZX plane.

good luck! if you have any other questions please post them.

Go Go Gadget DBPRO!

Athlon XP 2400+ || DDR-SDRAM 1GB || Nvidia GeForce 4 Ti4200 AGP 8x 128MB
sadsack
21
Years of Service
User Offline
Joined: 27th Nov 2003
Location: here
Posted: 10th Apr 2004 21:46
Thanks walaber I will try it out now renny

Login to post a reply

Server time is: 2025-06-10 05:30:49
Your offset time is: 2025-06-10 05:30:49