How do I use pathfinding

Get help using Construct 2

Post » Mon Jul 20, 2015 3:16 am

So first of all I've noticed that I have to have a delay ( find a path every 0.7 seconds works best) otherwise it won't work at all like it just gets stuck and won't move but anyway why is it that my sprite will jump forward a little bit then stop. There are no obstacles on the screen it's a simple find a path to the square and then follow the path but it won't move
B
27
S
12
Posts: 222
Reputation: 2,624

Post » Mon Jul 20, 2015 4:56 am

You should find a path once for each location you want to move to, then use the "On path found" trigger to start movement. See the manual for how pathfinding works.

In the new project dialog, search for "pathfinding" -- there's a demo in there that you can look at.
Moderator
B
115
S
41
G
20
Posts: 1,586
Reputation: 19,196

Post » Tue Jul 21, 2015 12:11 am

Ohhhhh ok. Thank you :) I guess I got confused on how to use it since the first time I used it was in a game where I had AI flying around attacking the player
B
27
S
12
Posts: 222
Reputation: 2,624


Return to How do I....?

Who is online

Users browsing this forum: Themrcoolio and 7 guests