Hi, do you know how to set the Pathfinding so that the ball doesn't take the first way but the second way? I need the ball to move exactly on the Pathnodes vertically or horizontally, without turning to sides.
Ugly way:
Pretty way:
Develop games in your browser. Powerful, performant & highly capable.
You'll have to implement your own movement. You can use the expressions Sprite.Pathfinding.NodeXAt(Index) and Sprite.Pathfinding.NodeYAt(Index) to get the next x,y coordinates to move to. And Sprite.Pathfinding.NodeCount will give you the number of nodes in the path.
I'll try it. Thanx for advice.
You can disable diagonal movements in the pathfinding properties. You you set the cell size properties to the same size as your graphics, you should get the result you want