How do I make pathfinding stop lagging?

Get help using Construct 2

Post » Sat Mar 05, 2016 12:18 pm

I have a movement set up for my character that makes it use custom movement + path finding. Custom movement when mouse button is down, and path finding when once clicked.

I made it work perfectly as I wanted, but there is one problem with path finding: my character lags when he stops walking and i click him to move again. The character then moves in a very slow speed towards position for like 0.5 seconds and then starts moving normal speed again. This doesn't happen every time, but very often.

Now, how do I fix this lag? I tested different cell sizes, tried turning off custom movement. But nothing helped.
B
10
S
4
Posts: 36
Reputation: 878

Post » Sat Mar 05, 2016 2:04 pm

I had same kind of problem with a game i am working on right now.. I eventually done away with pathfinding because of the issues I was having. I ended up using the bullet behavior because it is smoother and I have more control of it..

If you figure anything out let me know I would like to use pathfinding if it works correctly...
B
9
S
3
Posts: 58
Reputation: 805


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 3 guests