Npc movement

Get help using Construct 2

Post » Tue Sep 23, 2014 3:07 am

I'm trying to make a rpg like game.

I want when I click on my npc Character, it moves to a location. But there are obstacles in the way. I need it to navigate to a certain location.
B
8
S
2
Posts: 61
Reputation: 674

Post » Tue Sep 23, 2014 3:08 am

use the PathFinder behavior on your sprite.
B
96
S
31
G
15
Posts: 1,180
Reputation: 16,017

Post » Tue Sep 23, 2014 3:20 am

Yes but which actions should I be using?
B
8
S
2
Posts: 61
Reputation: 674

Post » Tue Sep 23, 2014 9:58 am

First you need the sprite to "find a path" to somewhere.
Then you need to check if the sprite have found a path "On path found" and in that case it should "move along the path"
Then you add an "On arrived".
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,838

Post » Tue Sep 23, 2014 12:28 pm

B
96
S
31
G
15
Posts: 1,180
Reputation: 16,017

Post » Tue Sep 23, 2014 4:06 pm

nimos100 wrote:First you need the sprite to "find a path" to somewhere.
Then you need to check if the sprite have found a path "On path found" and in that case it should "move along the path"
Then you add an "On arrived".



Thank you, this helped!
B
8
S
2
Posts: 61
Reputation: 674


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests