[Suggestion] Grid-based pathfinding behaviour

Discussion and feedback on Construct 2

Post » Sat Jan 25, 2014 1:36 pm

Try this - just uses the built-in pathfinding behaviour set to a grid. Someone with better skills than me might be able to improve it :)

https://dl.dropboxusercontent.com/u/106247621/LinearPathfinding.capx
B
15
S
4
G
1
Posts: 286
Reputation: 1,988

Post » Sat Jan 25, 2014 2:04 pm

The existing pathfinding behavior is already tile based and can do exactly this. If you don't like the default way it moves objects, you can make your own - the behavior can return a list of the path nodes.
Scirra Founder
B
403
S
238
G
89
Posts: 24,654
Reputation: 196,155

Post » Sat Jan 25, 2014 2:14 pm

Thanks Ashley, yeah turns out I was just being lazy ... think I've got it worked out now.
B
15
S
4
G
1
Posts: 286
Reputation: 1,988

Post » Sat Jan 25, 2014 4:55 pm

Can u pls post an example capx?
https://www.helmade.com
Check out our start-up and configure your own helmet in true 3D.
B
46
S
13
G
12
Posts: 1,158
Reputation: 10,730

Post » Sun Jan 26, 2014 12:27 am

Here you go:

https://dl.dropboxusercontent.com/u/106247621/LinearPathfinding.capx

Also works fine with diagonals turned off.
B
15
S
4
G
1
Posts: 286
Reputation: 1,988

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 13 guests