more help on ai please

Non-platform specific questions.

more help on ai please

Postby mrgame » Sun Feb 10, 2008 1:44 pm

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
mrgame
 
Posts: 118
Joined: Sun Oct 21, 2007 8:09 pm
Location: my computer
Score: 3 Give a positive score

Re: more help on ai please

Postby mrgame » Sun Feb 10, 2008 8:15 pm

i realy need help with this
mrgame
 
Posts: 118
Joined: Sun Oct 21, 2007 8:09 pm
Location: my computer
Score: 3 Give a positive score

Re: more help on ai please

Postby DilloDude » Sun Feb 10, 2008 9:51 pm

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.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

Re: more help on ai please

Postby Bee-Ant » Mon Feb 11, 2008 1:20 am

Use random timers :D :D
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron