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 Discussion / [LOCKED] Help to view the whole map.

Author
Message
APC
18
Years of Service
User Offline
Joined: 6th May 2007
Location:
Posted: 6th Apr 2008 02:48
I need help view a great distance from the player. So you can see more of the map.
LBFN
18
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 6th Apr 2008 16:16
This code won't run as is. You have text outside of the quotes, for example:

should be:

You inkey$() calls will also need to be modified. Inkey$() looks for one keypress. If you have

it simply won't work. You need

BTW, your code only checks for lower case characters. I would suggest you use the keystate instead of using inkey$() for this.

Is this written in DBC? I have the sparky's dll for DBP, but not DBC, and this code won't run in DBC for me (even with the needed changes made).

I think you are asking how to convert from first person view to a third person view, correct? Please clarify.

LB
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 6th Apr 2008 21:01
@lbfn
some of the errors were just forum artifacts (the /'s)

APC
18
Years of Service
User Offline
Joined: 6th May 2007
Location:
Posted: 6th Apr 2008 21:32
This code has first and third person view.It is Dbp. I would just like to see a greater distance.So you can see across the map.
Maybe my map is to big?
Here is a X file for the map.
KISTech
17
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 6th Apr 2008 21:40 Edited at: 6th Apr 2008 21:41
SET CAMERA RANGE Camera, Near, Far

Set Camera to the camera number you are using. Default camera is 0. Usually you set Near to 1. Set Far to the distance you want to see.

Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 6th Apr 2008 21:41
If it is DBP, it should be posted in the DBP forum, as the thread is not appropriate for this board. Maybe a mod should move it?

Seriously, how do you make the little blue text come up below your message?
APC
18
Years of Service
User Offline
Joined: 6th May 2007
Location:
Posted: 6th Apr 2008 22:17
Oh sorry. I thought i was in DBP.
lol

Thank you all I will see if all this works soon.
LBFN
18
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 6th Apr 2008 22:18
Okay, I don't see the problem you are encountering. The download for the .x file that you put up does not work, so I made a quick box and textured it so I could run it. I was able to move in first person and third person to the end of the model (granted it was a small one).




LB
APC
18
Years of Service
User Offline
Joined: 6th May 2007
Location:
Posted: 7th Apr 2008 02:22
WEll The map doesn't work because you dont have the textures.

The SET CAMERA RANGE Camera, Near, Far . I didn't get it to work with the code.
APC
18
Years of Service
User Offline
Joined: 6th May 2007
Location:
Posted: 7th Apr 2008 02:24
My map that i have is huge.
KISTech
17
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 7th Apr 2008 02:45
Post the line of code you used for SET CAMERA RANGE and maybe we can figure out what is going on.

APC
18
Years of Service
User Offline
Joined: 6th May 2007
Location:
Posted: 7th Apr 2008 05:21
Well i can not find the camera so i cant change the range.
Any one mind helping me finding the camera?
APC
18
Years of Service
User Offline
Joined: 6th May 2007
Location:
Posted: 7th Apr 2008 05:35 Edited at: 7th Apr 2008 05:35
WEll There is no camera. Now how do i view me alpha textured map I only see one texture.
LBFN
18
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 7th Apr 2008 05:48
Camera 0 is the default. You have a camera command in your code. Just use
for now.

The size of your map should not matter. I moved from one end of the map to the other using the WASD keys and turned using the mouse, so whether it is 10,000 units wide or 250 units wide it will make no difference.

LB
APC
18
Years of Service
User Offline
Joined: 6th May 2007
Location:
Posted: 7th Apr 2008 06:53
Yeah i found out how. thank you. I like to know why my Xfile doesn't show the alpha texturing i have on the map.

Anyone here have Extends? Idk how to update mine or get the RTS sky map on my code.
APC
18
Years of Service
User Offline
Joined: 6th May 2007
Location:
Posted: 7th Apr 2008 23:11
Sorry I am going to end this forum and pick it up on DBP Forum sorry.

Login to post a reply

Server time is: 2025-06-07 12:51:24
Your offset time is: 2025-06-07 12:51:24