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 / avoiding obstacle in 2d request

Author
Message
Alduce
23
Years of Service
User Offline
Joined: 26th Oct 2002
Location: Rama spaceship
Posted: 18th Oct 2013 22:27
Hi guys, as in the title, do you know some tutorial or some code to make my sprite avoiding obstacles?

My main sprite start to talk to target sprite but when some other sprites is in his path so he avoid these obstacles changing his original path...

Help!!
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 19th Oct 2013 08:29
You need to look into "pathfinding", such as A* algorithm.

Login to post a reply

Server time is: 2026-07-10 22:28:42
Your offset time is: 2026-07-10 22:28:42