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 / Collision for any games

Author
Message
Fneep
19
Years of Service
User Offline
Joined: 3rd Sep 2005
Location: In my house
Posted: 15th Oct 2005 09:17
Hi.
When it comes to making games, Im alright. But there is one part that really stumps me.
Collision.
It is like one great big mystery to me.
I just dont "get" how to work collision.
Anyway, Looking through the index and help files are no good. They just give you the syntax and a short description that leaves me even more confused then before.

Is anybody willing to explain it to me?

Thanx in advance,

Nick

tpfkat
19
Years of Service
User Offline
Joined: 1st Sep 2005
Location: lancashire/uk
Posted: 15th Oct 2005 10:34
make variables to store your object ( camera) position.
make all your collision boxes ( or polygons or whatever you want)
if you make contact with the other objects-set your position to the last object using the variables you first set up.
update the info in your variables.

im not giving the code as i find it helps to have an explanation in plain english rather than to just copy code.
look in the coding part of the forum for loads of code on collision.
Fneep
19
Years of Service
User Offline
Joined: 3rd Sep 2005
Location: In my house
Posted: 15th Oct 2005 10:42
Thanx, I reckon it helps in plain english, because then you can find the code for yourself.

TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 15th Oct 2005 21:10
I have a basic DB collision tutorial in the tutorials section on my website.

Feel free to check it out (the link is in my sig at the bottom of this post).

TDK_Man

Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 15th Oct 2005 21:20
Try out Sparkys Collision DLL.
Fneep
19
Years of Service
User Offline
Joined: 3rd Sep 2005
Location: In my house
Posted: 16th Oct 2005 01:13
Thanx heaps!

TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 17th Oct 2005 00:31 Edited at: 17th Oct 2005 00:33
Xenocythe:

I've not used Sparky's dll yet, but from the comments I've read about it, I'm sure it really is better than DB's built-in collision.

But, I can't see how it can be easier to use than DB's own collision for someone who doesn't understand collision full stop. That's why I always say learn the collision in DB first and then move onto something better when it won't do what you want it to.

As a matter of interest, what couldn't you do with DB's collision that made you switch to using the dll?

I've not found DB's native collision all that bad to be honest and I reckon that many newbies jump straight into using alternatives because they have been told to rather than because they need to.

Nicholas Darkmoon:

If you looked at my tutorials, did it help explain collision any better for you?

TDK_Man

devastation
19
Years of Service
User Offline
Joined: 11th Aug 2005
Location:
Posted: 17th Oct 2005 03:06
my [still noob] opinion:

mostly: better for walking on a .x level (which is alot funner than an infinite, randomized matrix)

also: u can dedicate the built in collision to one or two purposes, like footstep sounds and being bitten by a monster

raycasting and bulletholes: need I say more

that's just my opinion, and I've only used db for a couple months now so I'm nowhere near as qualified as you (as though anyone else is )

verydevastating.com
Fneep
19
Years of Service
User Offline
Joined: 3rd Sep 2005
Location: In my house
Posted: 17th Oct 2005 10:57
Thanx heaps TDK.
You are the all knowing GOD of dark BASIC

Login to post a reply

Server time is: 2024-09-24 07:23:12
Your offset time is: 2024-09-24 07:23:12