Hello,
I had just purchased A* Pro. I am having alot of difficulty in setting up my new project to behave with a click to move in a diablo-style rpg.
For my player, I have these scripts attached to a capsule: Seeker, RVOController, Simple Smooth Modifier, AIPath.
I had made a slight adjustment to the AIPath script where if I click anywhere on my terrain, it sets the a transform (marker) to that point, and then I’m setting my target as that transform (marker).
a) My problem is: every 0.5 seconds it recalculates the path to my destination, the problem is that many of the times the start point of the path isnt even on the players position, sometimes it’s slightly to the left or to the right. Any idea why this is happening? (similar to a previous post by “BrianCrandell” who also has a zigzagging issue)
I also have 3 capsules (which are enemies) that find the path towards my player. the scripts I have attached to them are: Seeker, RVOController, AIPath, Simple Smooth Modifier.
b) The capsules move fine except that sometimes they are sliding sideways towards the player while looking (what seems to be) the next waypoint it’s trying to reach. Why is this happening?
c) Another issue I have is sometimes when they reach a player, one of the capsules will be behind the other 2, not able to reach the player because the other 2 are blocking it’s path. Any ideas on this one?
d) My last question is, how do I get the player to not “push” the other capsules out of the way if they are the player’s path?
Thanks for any help I receive in advance.
** I have created a short video which shows the issues I am having: http://www.youtube.com/watch?v=6N9hxBT52-k