Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

My requirement is to move a 2D characters with perspective view images has to wander in game area by choosing dynamic path and according to that the AI character has to switch the
animations based on its current direction and Ai character has to get collision between Ai Character, Ai and Player Character , Ai to Static Obstacles, Moving Obstacles .......

What i done till now is , AI chooses the random Way point and based on its direction it switches the animations and using Ray-cast AI detects the collision with static obstacles, but the problem here is with the Moving Obstacles since AI is casting the ray in one direction, some times AI character was walking on the obstacles like moving cars ..

So please tell me how to solve this problem ???? Thanks in advance

I think i have give you complete details about my requirement and my problem. And i am looking for good solution as i am doing the AI programming for the first time i don't have an idea how to approach this problem .please give me answers

share|improve this question
I would handle the animations with: docs.unity3d.com/Documentation/Manual/AnimationBlendTrees.html and the movement with docs.unity3d.com/Documentation/Manual/… ... That is if I understood your post correctly –  Savlon May 15 '14 at 13:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.