[Request] Pathfinder Behavior

Post your work in progress addons and get feedback

Post » Sat Mar 05, 2016 6:25 am

Image

Hello,
This example was very useful to me. Thanks
I would like to extend it will "one way " nodes. Nodes that can be go through from one side but not from the other.
Please check the image posted.

Any solution?
B
33
S
8
G
4
Posts: 155
Reputation: 3,752

Post » Sat Mar 05, 2016 5:52 pm

@paala

One possible solution is writing your own path finding logic, or try my pathfinding plugin of my board system.
B
108
S
26
G
272
Posts: 4,471
Reputation: 152,277

Post » Sat Mar 05, 2016 7:48 pm

Your plugin doesn't seam to offer one way tiles and the sample capx requires 5 additional plugins just to test.. DO you have a demo online somewhere?
B
33
S
8
G
4
Posts: 155
Reputation: 3,752

Post » Wed Mar 09, 2016 9:21 am

I manage to solve this problem :
what I did:
1. add a new instance variable to the other family : onewayhelper: 0 default
2. add a new sprite: ONEWAYHELPERSPRITE with a instance variable onewayhelper:
this sprite will be positioned at the nodes that you want one way behavior: with the insance variable of 1 and 2. you can't go from 1 to 2.
modify this events like this:
Image
B
33
S
8
G
4
Posts: 155
Reputation: 3,752

Post » Wed Mar 09, 2016 11:21 am

@paala

plugin-slg-movement_p1021558?#p1021558

Edit the cost function (event 8) to reach your goal.
B
108
S
26
G
272
Posts: 4,471
Reputation: 152,277

Previous

Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 1 guest