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 / Object Collision X and Y detection?

Author
Message
Dark Java Dude 64
Community Leader
15
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 29th Nov 2010 02:03
Is there a way to see if one object is hitting another object at an x or y angle so i can figure out what ways it can and cant move?

New 3d marble game coming soon!
Dark Java Dude 64
Community Leader
15
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 29th Nov 2010 04:31 Edited at: 29th Nov 2010 04:51
OK, did some research, and it seems like i need get object collision x,y, or z. but what EXACTLY do these commands return? also, ive seen commands like "if object collision(1,2)>1" how could it be greater than 1???

New 3d marble game coming soon!
=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 29th Nov 2010 10:08
I would look into Sparky's Collision DLL myself. It's a lot better than the DBP built in commands.

If you use 0 as the 2nd value in object collision, i.e All objects; then it returns the object number of the object colliding with the 1st object.

The other commands return sliding collision data; I think these have been added recently, as I don't remember ever seeing them before. There is an example tho in the help files.

Dark Java Dude 64
Community Leader
15
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 30th Nov 2010 00:27
Ok--i think it's time i need some help getting started with his dll--it sounds very popular. now how exactly do i use this dll? and where do i find it?

New 3d marble game coming soon!
Dark Java Dude 64
Community Leader
15
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 30th Nov 2010 00:45
Yah so i got it and it said i need to put it in dark basic pro bla bla ans so in, but the obly dbp files are named dark basic professional temp, none w/o temp.

New 3d marble game coming soon!
ShaunRW
DBPro Developer
18
Years of Service
User Offline
Joined: 7th Jan 2008
Location: Brisbane, Australia
Posted: 30th Nov 2010 02:41
The DarkBasic files are here: C:\Program Files\The Game Creators\Dark Basic Professional.
The .DLL goes in Compiler\plugins-user.
The .INI goes in Editor\Keywords.
The help files go in the Help folder.

Dark Java Dude 64
Community Leader
15
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 30th Nov 2010 02:48
thanks!

New 3d marble game coming soon!
ShaunRW
DBPro Developer
18
Years of Service
User Offline
Joined: 7th Jan 2008
Location: Brisbane, Australia
Posted: 30th Nov 2010 03:34

Login to post a reply

Server time is: 2026-07-21 13:38:37
Your offset time is: 2026-07-21 13:38:37