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 / Following Waypoints

Author
Message
Veron
18
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 21st Oct 2007 16:00
I've got a bunch of objects, and say, if I wanted them to move along a footpath, then once they reach the end, turn around and come back again, how would that be done?

I know Dark A.I can do this, and i'll defiently be buying it, but in the meantime, is there another way of doing it? I tried increasing the object's X or Z value in a loop, something like this:
, but that didn't work.

Thanks for taking notice of this!


Windsept
18
Years of Service
User Offline
Joined: 9th Jun 2006
Location: United States
Posted: 21st Oct 2007 16:29
The reason you code doesn't work is because the "position object" command needs to be in the loop like so....


You need the command in the loop to update the position of the object.

Hope that helps!!

Windsept

pcRaider
17
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 21st Oct 2007 16:34
Maze.
http://en.wikipedia.org/wiki/Maze

About artificial intelligence, you can discover most in a forum.
http://forum.thegamecreators.com/?m=forum_view&t=115845&b=6


Search, And, keyword.
"AI","A star","astar"
Veron
18
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 21st Oct 2007 17:04
Thanks Windswept, but I tried that to no avail. It just changed the starting position of the object, it didn't move at all.

pcRaider: I'll take a look at that tomorrow, I need some sleep, thanks!


Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 21st Oct 2007 17:58
Wayhay!

http://forum.thegamecreators.com/?m=forum_view&t=112357&b=6

"It's like floating a boat on a liquid that I don't know, but I'm quite happy to drink it if I'm thirsty enough" - Me being a good programmer but sucking at computers
Veron
18
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 23rd Oct 2007 10:21
Wayhay! That is very nice, thanks Zotoaster, but how would that be implemented into, for example, a 3rd person game?


Login to post a reply

Server time is: 2024-11-25 12:55:06
Your offset time is: 2024-11-25 12:55:06