T
Tyson Boyer
Guest
I am using a motion planning grid and the pathing functions to have my A.I chase the player. As far as I can tell, the path_start function only uses a positive speed to accomplish this motion, which means I cannot directly use the change in x or y (like I would with the player) as a way to know the direction the A.I is moving.
I was able to work around this by comparing the players x and y to the A.I's, but this way seems convoluted (maybe it is not, I am new to programming so all of my "work arounds" seem convoluted). Is there a way to get the A.I's x and y rate of change when using M.P grids and paths?
I was able to work around this by comparing the players x and y to the A.I's, but this way seems convoluted (maybe it is not, I am new to programming so all of my "work arounds" seem convoluted). Is there a way to get the A.I's x and y rate of change when using M.P grids and paths?