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 / Object move towards other Object

Author
Message
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 15th Mar 2008 13:03
Hi, all!

For my AI's in my RPG, i have made the code for random moving and detecting distance to player.
What i need, is a code for moving an NPC towards the player or another object.

Something else which would have been nice was if i could detect the instance closest to the NPC too.

---:GAME MAKING IS BEST:---
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 15th Mar 2008 20:38
For a few ideas, check out the recent AI challenge in the DBC challenge thread. Should be 1 to 3 pages before the end of the thread.

Enjoy your day.
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 16th Mar 2008 16:10
Yes thanks, its also in the Monster Hunt

---:GAME MAKING IS BEST:---

Login to post a reply

Server time is: 2025-06-04 03:18:21
Your offset time is: 2025-06-04 03:18:21