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 / detecting collision on maps

Author
Message
NazguL86
20
Years of Service
User Offline
Joined: 14th Feb 2005
Location:
Posted: 7th Mar 2005 22:00
Hi all,
I made a map with CShop, and now i would like to use it on DarkBasic.
I want to detect collisions in the map that i made, and for example, making the player falling in lava when it walks over a place without terrain.
Which "programs" do i need ? I have tried nuclear glory, but i don't understand how to use it with darkbasic NOT professional, anyone can help me? I just would like to detect collisions in the easiest way possible!
tnx
NazguL86
20
Years of Service
User Offline
Joined: 14th Feb 2005
Location:
Posted: 8th Mar 2005 22:00
could anyone help me ? it's really important, it's going to be a work for my school, and i have to finish it soon!
i searched in the forum, i saw that there are so many posts about this, but they often have different/contrasting answers!
NazguL86
20
Years of Service
User Offline
Joined: 14th Feb 2005
Location:
Posted: 8th Mar 2005 22:23
i also have problems loading maps in DBC.
With this code, i can load it in DBP, but using it on DBC, i cannot see any textures :\\\

dazzling dazzla
20
Years of Service
User Offline
Joined: 6th Nov 2004
Location: here
Posted: 8th Mar 2005 22:59
Im not entirely sure but i think that you can only use bsp's and cshop with dbpro

the answer to all lives questions is...
... meh!
NazguL86
20
Years of Service
User Offline
Joined: 14th Feb 2005
Location:
Posted: 10th Mar 2005 01:29
oh...
i can't believe that anyone knows nothing about that...
please, help me!
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 10th Mar 2005 10:00
You can use Cshop maps in classic. The two lines of loading objects are for making sure your pre-calculated lights show up. Try omitting the load of the second object (get rid of ghost object while you're at it) and see what you come up with. I know for a fact you can load .x objects from Cshop in though, done it myself.

Crazy Donut Productions
Current Project: A Redneck game
NanoBrain
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 10th Mar 2005 15:26
To all,

Yes, .x and .3ds are both loadable formats within DarkBasic Classic.

+NanoBrain+
NanoBrain
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 10th Mar 2005 15:30 Edited at: 10th Mar 2005 15:38
NazguL86,

First of all, since you are using a modeled map, you will need to record the coordinates of each object's edge(the area where collision needs to be detected) within the map. I recommend writing a helpful program to do this. One where you have your map loaded, and you use a box that you can move throughout the 3d world. Have the program print the coordinates of the box onto the screen. Use this box to visually get the coordinates of the edges of the different objects in your map. Then, use this information to create your collision.

For collision detection, I would experiment with some of the code that has been posted on the forums. There are many different ways to create collision detection within DarkBasic Classic. So, you will need to find the method which best suits your needs. Just take the time you are using to wait for a reply in this post to experiment with the code that has already been posted throughout this website.

+NanoBrain+
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 12th Mar 2005 13:26
Don't forget Nuclear Glory or Sparky's dll.

Crazy Donut Productions
Current Project: A Redneck game

Login to post a reply

Server time is: 2025-05-23 19:12:24
Your offset time is: 2025-05-23 19:12:24