Okay, so I'm having trouble getting the enemy to move to the target on his own.
For testing purposes, I originally had it set up so he would move to position when I right clicked on the screen. It worked fine.
Then, I tried to set it up so he would do it on his own. I am getting odd results.
This is a turn based game. I want the enemy to move when his turn is active, which he does. It's just that he goes to weird places or stops halfway.
Here is a screenshot of the problem code.
Obviously, I would disable the code for right clicking so it doesn't interfere with my new code of him moving automatically. I just left everything un-disabled so you could read it better.
Like I said, it works flawlessly when I right click, but always gives mixed results when automated. He just doesn't go to the right place or stops half way. I really don't know why and hope that someone with some programming knowledge may know.
Also, I had to set up the auto code to a trigger once event or it wouldn't do anything.
So, does anyone know how to fix it so it works automatically when it's the enemy's turn?