Slow pathfinding

Discussion and feedback on Construct 2

Post » Wed Jul 24, 2013 11:58 am

In my tests with the pathfinding in a simple test with rotation enabled, the calculation seems very fast.

However, with the rotation turned off, the time you spend to rotate the sprite, it still used but not rotate the sprite. So it gives the feeling that the calculation is slower.

I tested with simple pathfinding, a sprite and by clicking a button to go to a position without more.

Does anyone else has noticed?

Edit to put a demo of the error. Demo - http://www.mediafire.com/download/bb1zb491ammbglb/Demo.capxepisuarez2013-08-28 07:55:54
B
17
S
4
G
2
Posts: 15
Reputation: 2,879

Post » Wed Jul 24, 2013 1:59 pm

So THAT'S what's happening.

I have the same problem. Going forward, the object follows the path immediately.
But when I order it to go back, it takes 2-3 seconds before it starts moving. I've DISABLED rotation, so this would explain what's happening - that it takes 2-3 seconds to rotate backwards(in the game code, but not visually) before it moves off.

I hope this can get fixed.

@Ashley - Is this a bug or is it intended functionality?Xionor2013-07-24 14:01:30
B
10
S
3
Posts: 233
Reputation: 1,537

Post » Wed Jul 24, 2013 8:18 pm

Oh, is this why there's lag in pathfinding? I always just thought it was b/c pathfinding has a pretty significant calculation time (particularly b/c we can't limit pathfinding area) and this was just masked when the object is rotating.

Would love if this was fixed.
B
9
S
2
Posts: 58
Reputation: 1,416

Post » Wed Jul 24, 2013 8:55 pm

I seem to recall that on path found, you can set the angle of the object to the first node via events to speed that up.
Moderator
B
91
S
32
G
33
Posts: 3,005
Reputation: 27,552

Post » Wed Jul 24, 2013 10:28 pm

What if your path zig-zags tho or goes around a lot?

You should't need to "trick" or "force" the behavior into doing something it should be doing by default. It really looks like there's a bug/oversight with it.Xionor2013-07-24 23:02:31
B
10
S
3
Posts: 233
Reputation: 1,537

Post » Mon Jul 29, 2013 1:53 pm

I just set that "on start of layout" Set rotation speed to something really hig and it works pretty good. Awesome thread by the way i was struggling with getting a good result, but now i have somethimg im happy with :)
B
2
Posts: 1
Reputation: 152

Post » Mon Jul 29, 2013 1:55 pm

@Ashley

Can't we just get the ability to make turning instant?
B
10
S
3
Posts: 233
Reputation: 1,537


Post » Sat Aug 17, 2013 4:04 am

Okay, run a scenario by me again? What's going on?
I'm not sure I'm completely following the hang-up in Path Finding...
I'm seeking Narnia. Who wants to come with me! Aslan is on the move!
B
127
S
21
G
8
Posts: 759
Reputation: 14,327

Post » Sun Aug 18, 2013 6:52 am

@Rhindon
The object following the path isn't set to rotate so it appears to sit and wait, like it's following and invisible object that did have to turn around.
And apparently setting the rotate speed up, makes the invisible object turn around quicker, so your object waits less.
B
215
S
57
G
32
Posts: 900
Reputation: 38,777

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests