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.

Newcomers DBPro Corner / code to make an object move towards another object

Author
Message
donthurtme
21
Years of Service
User Offline
Joined: 24th Jul 2003
Location: Australia
Posted: 26th Jul 2003 10:02
does anybody have a code for DBC that can make an object move towards and follow another object? i am trying to program my own AI similar to the "Iced" demo
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 26th Jul 2003 11:05
point object monster,playerx,playery,playerz
move object monster,speed

monster is the object number of your monster
playerx/y/z are the players position
speed is how far the monster moves
put this in your main loop and the monster will continually walk towards you although it will ignore everything like walls

You know whats weird???
Donald duck never wore pants, yet everything time he got out of the shower he put a towel around his waist...
Whats with that???
donthurtme
21
Years of Service
User Offline
Joined: 24th Jul 2003
Location: Australia
Posted: 26th Jul 2003 13:09
thanks exactly what i needed

Login to post a reply

Server time is: 2024-09-20 17:51:36
Your offset time is: 2024-09-20 17:51:36