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.

Author
Message
alpha numeric characters
21
Years of Service
User Offline
Joined: 17th Jan 2004
Location:
Posted: 10th Jul 2004 23:49
I wanted to create a simple 1hr program to play around with & branch off of but it is not working.


It won't detect there collision & I've tried if object hit(1,2)>0 with no luck either. Any ideas?
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 11th Jul 2004 01:18
Try putting in, after the objects have been loaded in/created;
Set Global Collision On

But, DBC's built-in collision isn't the best to put it nicely.

If you can, use something like a distance check;


It's always best to steer away from the built-in collision if you can, as it's not too great.

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Hop a long
21
Years of Service
User Offline
Joined: 12th May 2004
Location: The Code Dump
Posted: 12th Jul 2004 12:55 Edited at: 12th Jul 2004 12:57
Here are two examples that use simple 'shooting type' collision similar to your code. One just tests for the bullet and the target.
http://www.geocities.com/hifin2003/shootin-gallery.html

The other tests the bullet and several targets.
http://www.geocities.com/hifin2003/shootin_revisited.html

Login to post a reply

Server time is: 2025-05-24 22:47:13
Your offset time is: 2025-05-24 22:47:13