Monokkel
(Monokkel)
September 7, 2020, 7:15pm
3639
codeyhanson:
Ok I looked around to try to find out where to put this fix but im unable to find it im using the hybrid map if you could point me in the right direction so I can move that grid manager from 0,0,0 I just need to know where to put the fix sorry
Hi, seems like I forgot to convert from grid space to world space in one place in the experimental hybrid map. Sorry about that. This should hopefully fix things:
https://i.imgur.com/5A2Vbnj.png
Christian_Beauclair:
Hello .
I am trying to understand what I need to modify or create in terms of pathfinding in my game. You mentioned a video on pathfinding and edge costs at the very end of this one https://www.youtube.com/watch?v=r5j3…15jXKF&index=9 but I could not find it.
I have a Title type with a Boolean variable called Hindering (represented by the blue tiles in my screenshot). I want the pathfinding to stop movement on those tiles and not go beyond if you start from a regular tile. If you start from an hindering tile, you can go anywhere at half the speed.
The screenshots represents only a portion of the grid. The unit can move 4 squares in any directions. The first one shows the output of pathfinding from a clear tile. The second one shows the output of path finding if starting from a hindering tile on the second move command since the unit is half speed 4/2=2.
Any pointer on how to implement this would be greatly appreciated. I think I need to modify Search and Add Adjacent Tiles Custom 1 but you would save me time if you have a hint for me.
Thanks,
Chris
N.B. I made a mistake on screenshot 1. The unit can reach 14001 due to the diagonal entry but not beyond. Sorry.
I am currently working on this problem. I will update this post when I have a solution.