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 / How do you check for sight?

Author
Message
Jigga
21
Years of Service
User Offline
Joined: 13th Nov 2002
Location:
Posted: 30th Nov 2002 23:37
How do you for example make a object dissapear if another object is facing it? I do not understand the static line of sight commands. Can you give me a quick example.
TheNVS
21
Years of Service
User Offline
Joined: 25th Oct 2002
Location: United States
Posted: 1st Dec 2002 01:30
if you help Jigga out, you will help me too.

indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 1st Dec 2002 04:08
This is another method using a polygon as the line of sight feature instead of the inbuilt commands.

Its probably not functional in a larger scale game but it could be used in conjunction with some other code to be effective.



TheNVS
21
Years of Service
User Offline
Joined: 25th Oct 2002
Location: United States
Posted: 1st Dec 2002 04:34
nice

TheNVS
21
Years of Service
User Offline
Joined: 25th Oct 2002
Location: United States
Posted: 1st Dec 2002 04:49
damn. indi, you just solved several big problems that i had. there was something so simple that i needed badly. damn, damn, damn. i might even put you in the credits for this(and the guy who thought of this). sometimes something so simple can be hard to find or think of. thanks.

indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 1st Dec 2002 04:52

Login to post a reply

Server time is: 2024-04-19 04:18:05
Your offset time is: 2024-04-19 04:18:05