Pathfinding caught on corners

Just started using Construct 2? Post your questions here

Post » Wed Mar 18, 2015 6:07 am

So I've been playing around with pathfinder, and I've noticed that if you make a click based movement game , and you add an obstacle but click it in certain spots around the obstacle, the character gets caught and desperately tries to wiggle its way off the corner, but it takes forever... any fix for this?
You do not have the required permissions to view the files attached to this post.
B
11
S
2
G
1
Posts: 27
Reputation: 1,094

Post » Wed Mar 18, 2015 9:40 am

You might want to check the pathfinding gridsize - search the manual for pathfinding, it explains it pretty well..
B
8
S
1
Posts: 10
Reputation: 361

Post » Wed Mar 18, 2015 11:13 am

B
213
S
29
G
14
Posts: 1,867
Reputation: 36,970

Post » Thu Mar 19, 2015 5:21 am

Thanks for replies, I tried both, but it's still not quite what I was thinking, maybe something more like Runescape style of pathfinding? where the character kind of goes around the object and finds the path again? I've been trying all day to achieve this but I've ended up with a mess.
B
11
S
2
G
1
Posts: 27
Reputation: 1,094

Post » Thu Mar 19, 2015 9:34 am

Here try this I found this demo done by alextro Don't give me credit. For this demo credit goes to alextro
You do not have the required permissions to view the files attached to this post.
B
213
S
29
G
14
Posts: 1,867
Reputation: 36,970

Post » Fri Mar 20, 2015 4:48 am

A grid is a good idea, I'll have to play with it more, wouldn't really need pathfinding, I'll have to see what I come up with thanks!
B
11
S
2
G
1
Posts: 27
Reputation: 1,094


Return to Beginner's Questions

Who is online

Users browsing this forum: Lightside and 0 guests