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 / Comparing Positions

Author
Message
alpha numeric characters
21
Years of Service
User Offline
Joined: 17th Jan 2004
Location:
Posted: 16th Dec 2004 06:09
On working on earlier versions of this game in devolpment, I have found that useing object collision is way to laggy for my game, so i decided to compare object positioning as an alternative which just takes the objects current area and compares it to opposing objects. Alhough my bullet area comparision works without failure, when I try to use it for monster detection (instead of deleting object it just moves object 20 because its alreay pointing in proper place), All the objects come wether there in the right place or not or none come at all regardless of there positioning. Any helpful hints or creative solutions?

Bullet Area Comparision


Whole Code
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 17th Dec 2004 10:06
a distance function can greatly improve collision checks.
you can also use DB collision with it, but only if you really have to solve a problem. apparantly the square root command is slow but i dont know.



If no-one gives your an answer to a question you have asked, consider:- Is your question clear.- Did you ask nicely.- Are you showing any effort to solve the problem yourself

Login to post a reply

Server time is: 2025-05-24 08:10:19
Your offset time is: 2025-05-24 08:10:19