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 / some box Collision help

Author
Message
Ghost Games
18
Years of Service
User Offline
Joined: 1st Aug 2007
Location:
Posted: 14th Dec 2010 09:26
hi all

im trying to make some simple collision with 2 boxes.

but i cant get it to work, all i want is when the 2 boxes collied, the program should enter a if statement and print "object hit" on the screen.

anyone that can help me with that.

my code is here.



Thx
DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 14th Dec 2010 15:29
Well, easiest way is DB's collision commands.

Not sure how fast they are these days. Sparky's collision dll is faster from what I have read. There are other ways, but for starters the standard collision commands are not bad.

http://s6.bitefight.org/c.php?uid=103081

Login to post a reply

Server time is: 2026-07-21 07:02:34
Your offset time is: 2026-07-21 07:02:34