Pathfinding Advice

Get help using Construct 2

Post » Tue Jul 11, 2017 11:50 pm

I've been tinkering with the Cell Size and Cell Border and such and have gotten it somewhat acceptable. Though sometimes she still cuts some corners and which messes up the z-index. But if I move towards the other end of the spectrum then she won't go through the kitchen doors.

I've read up on the pathfinding and feel I understand the settings but haven't used it that much so just thought I'd put it out there in case some experienced people have some tips or advice.

You can see here:
https://www.loubagel.com/archives/survi ... ding-test/

Use the mousewheel or - to zoom out to see better. Walk up to a computer and hit space to initiate the pathfinding.


...haven't share this anywhere else so you get a sneak peak ;)
ImageImageImage
B
40
S
23
G
11
Posts: 500
Reputation: 10,066

Post » Wed Jul 12, 2017 9:10 pm

This might help you with figuring out Cell Size and Cell Border.

https://www.dropbox.com/s/km7j3r9kci5zh ... .capx?dl=0

It draws the cells & the borders. Change the property's for the path finding behavior. Change that one global variable. And run it.

You might find it surprising to experiment with some values.

Also, what this little experiment will teach you. The curve of the path is not depending on Cell Size and Cell Border. It depends on the way that it is moving over the path. And the only 2 properties you have at this moment to change the way that it moves is Speed and Rotate speed. Try some combinations.

So, to stop it from cutting the corners (in tight grids) and have a natural way of moving, we need to take care of the moving our self.
One of many ways, using a 3th party plugin :
https://www.dropbox.com/s/10sw1nuam5lcs ... .capx?dl=0
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Thu Jul 13, 2017 3:44 pm

Thanks, I'll take a look at the capx
ImageImageImage
B
40
S
23
G
11
Posts: 500
Reputation: 10,066


Return to How do I....?

Who is online

Users browsing this forum: ametueraspirant, dand, mickclarke and 34 guests