Page 1 of 1

more help on ai please

PostPosted: Sun Feb 10, 2008 1:44 pm
by mrgame
ok im making a top down shootem up. i can do everything esl about the ai but this 1 anoying thing. the game is like inside so there is alot of rooms and walls ect. i want the enimy to follow the player if hes close anoth and if i turn round a wall instead of him getting stuck behind it he will also walk round it.
almost none of the walls are the same size as the whole building is 1 actor. how if possible?
i know how to make the enimy only react if the player is at a sertan distance away from him but how do i make him follow him....


breifly for those who dont like to read.

i need an actor that will follow my player around walls not get stuck behind him

Re: more help on ai please

PostPosted: Sun Feb 10, 2008 8:15 pm
by mrgame
i realy need help with this

Re: more help on ai please

PostPosted: Sun Feb 10, 2008 9:51 pm
by DilloDude
You could use the avoid option in move to, but that has limitations. If you wan't more options, you might want to set up your own pathfinding system, which has the added advantage of being able to write more complicated AI, plus with a few more values you can do visibility checks and things like that. Look here for some information on A* pathfinding.

Re: more help on ai please

PostPosted: Mon Feb 11, 2008 1:20 am
by Bee-Ant
Use random timers :D :D