Didjynn
Member
Hello everyone,
I have a grid and a pathfinding working well and I would like to draw the path depending of my action points like this :
But the actual system I'm using isn't really good and anyway doesn't work anymore since I don't use objects anymore to make my map (I was using the distance and direction from the player to the mouse and then dividing it by the size of my map tiles (16px here) before to draw rectangles and use instance_nearest to place them).
Another thing I would like to do is, after my player began to follow the path, stop on each square and check something but I don't see how to do that. path_position only give the position in % not the actual x,y position or grid cell (and I'm actually using a grid for the pathfinding, I don't see any other way. My skill in programming is... relative since I never studied this).
Thank you for your time
I have a grid and a pathfinding working well and I would like to draw the path depending of my action points like this :
But the actual system I'm using isn't really good and anyway doesn't work anymore since I don't use objects anymore to make my map (I was using the distance and direction from the player to the mouse and then dividing it by the size of my map tiles (16px here) before to draw rectangles and use instance_nearest to place them).
Another thing I would like to do is, after my player began to follow the path, stop on each square and check something but I don't see how to do that. path_position only give the position in % not the actual x,y position or grid cell (and I'm actually using a grid for the pathfinding, I don't see any other way. My skill in programming is... relative since I never studied this).
Thank you for your time
Last edited: