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 / Why wont the collision detection work?

Author
Message
Imerion
21
Years of Service
User Offline
Joined: 13th Oct 2003
Location:
Posted: 14th Oct 2003 00:14
I want the game to move to label death when object 8 collides with object 99. However, this wont work. The other collisions works without problems. Please help me with this...
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 14th Oct 2003 11:23
Ok, you might want to look at your code, you have this, all the way through it:



And if you
Quote: "want the game to move to label death when object 8 collides with object 99"


Then, you need this:



Are you sure that is the question that you wanted to ask?

Hope I Helped...

Knowladge Belongs To The People...
Imerion
21
Years of Service
User Offline
Joined: 13th Oct 2003
Location:
Posted: 15th Oct 2003 23:19
Oh, sorry I wrote wrong. I meant the collision between object 10 and 99. Nothing happens there at all. Any idea why not?
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 16th Oct 2003 11:55
Ok, you have this:


Try this instead:


Hope I Helped...

Knowladge Belongs To The People...
Imerion
21
Years of Service
User Offline
Joined: 13th Oct 2003
Location:
Posted: 17th Oct 2003 00:30
No, that won´t work either. Perhaps I have stated the collision wrong in the first place. But it should be put to spheres right?
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 17th Oct 2003 05:34
Try changing this:



To this:



Other than that, the only thing i can suggest is stepping through your code and looking at the value of the variables all the way through it...

Hope I Helped...

Knowladge Belongs To The People...

Login to post a reply

Server time is: 2025-05-21 13:59:28
Your offset time is: 2025-05-21 13:59:28