[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
395
S
232
G
88
Posts: 24,371
Reputation: 193,772

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?
Image
Check out our start-up and configure your own helmet in true 3D.
B
44
S
11
G
11
Posts: 1,154
Reputation: 9,978

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 35 guests