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 / Intersect Object Collision?

Author
Message
Flaming Ghost
19
Years of Service
User Offline
Joined: 29th Apr 2005
Location: Um...Right here
Posted: 26th Nov 2005 19:26
I am really having trouble with this intersect object command. I am trying to make it so that when you run into the cubes, you stop. But whenever I turn the intersect object number tuns to zero, and for some reason, it isn't even detecting collision on the walls. I need some help please!

Code:



Am I dead yet?
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 26th Nov 2005 19:58
why do you use intersect object command? why don`t use simple:

if object collision(box1,box2) then speed = 0

or something like that

http://dodica.proboards75.com/index.cgi
first 20 are mods. i have 9 sofar.
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 26th Nov 2005 21:03 Edited at: 26th Nov 2005 21:04
@Dodic:

That idea would simply not work...

@Flaming Ghost:

I don't know if you know sparkys free collision dll, but it's really worth a try. Sure you're gonna use intersect in that too, but there is help files provided with it and example codes.

PanzerGameshere
Free Particle Engine For dbpro :
here
super skull
20
Years of Service
User Offline
Joined: 16th Jun 2004
Location: usa
Posted: 28th Nov 2005 18:18
i also posted a response to the thread on my forums at clix.to/ultranerd

ps. no flaming i know my forums suck
Flaming Ghost
19
Years of Service
User Offline
Joined: 29th Apr 2005
Location: Um...Right here
Posted: 28th Nov 2005 23:52
Yes.. someone else told me to use that dll... but I really didn't understand it? HJow do I use it in my program?

Am I dead yet?
Heckno
20
Years of Service
User Offline
Joined: 8th Sep 2004
Location: Palm Coast, FL
Posted: 30th Nov 2005 02:37 Edited at: 30th Nov 2005 02:47
try this, see if it works, changed so only the x pos would intersect with object 19 (which I colored seperately for ya)... just a quick tweak to get you on the right track...


Login to post a reply

Server time is: 2024-11-12 05:10:18
Your offset time is: 2024-11-12 05:10:18