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 / Collision...WTF!?!?!

Author
Message
nemo85
20
Years of Service
User Offline
Joined: 4th Jan 2005
Location: Milky Beans
Posted: 12th Mar 2005 04:27
Ok so i know this probably gets asked alot but i did search the forums etc but cant find an answer!

This is my full code:



Now my question is why wont the collision work?

Excuse me for my noobishness!
Hop a long
21
Years of Service
User Offline
Joined: 12th May 2004
Location: The Code Dump
Posted: 13th Mar 2005 09:54
nvc450

Here are two possibilities. You should be able to pick out what you need for your particular setup.
http://www.geocities.com/hifin2003/fpswalk.html
http://www.geocities.com/hifin2003/sliding-collision.html
Guitarman
21
Years of Service
User Offline
Joined: 31st Jan 2004
Location:
Posted: 14th Mar 2005 05:55
nvc450:
I dealt with a similar problem when I was first starting. Try this: For some reason the object collision(id,0) commmand can only be used once per project to work effectively. the Object collision command, when 0 is the second number, will return the number of the object that object id is touching. Therefore if you say "if object collision(id,0)=1 then....., you are saying if id collides with object 1 then..... Theoretically, this can be repeated for every object, but it can't. Try this:
then, specify the reaction by saying "if coll#=1 then.... and if coll#=2 then...."

I hope this helped (and made sense!!). It was really frustrating for me when I first tried to learn this. Good Luck!
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 15th Mar 2005 01:12
is coll suppose to be 1
nemo85
20
Years of Service
User Offline
Joined: 4th Jan 2005
Location: Milky Beans
Posted: 15th Mar 2005 02:13
Cheers for the reply's, got it sorted now

Just gota get down to building the level, as it's my first real game i'm keeping it simple and using only the primitives used in DBC.

Once again thanx for the advice.

Login to post a reply

Server time is: 2025-05-23 19:09:37
Your offset time is: 2025-05-23 19:09:37