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
23
S
8
Posts: 118
Reputation: 1,919

Post » Tue Sep 23, 2014 3:08 am

use the PathFinder behavior on your sprite.
B
101
S
34
G
16
Posts: 1,212
Reputation: 17,016

Post » Tue Sep 23, 2014 3:20 am

Yes but which actions should I be using?
B
23
S
8
Posts: 118
Reputation: 1,919

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
45
S
12
G
3
Posts: 1,209
Reputation: 7,537

Post » Tue Sep 23, 2014 12:28 pm

B
101
S
34
G
16
Posts: 1,212
Reputation: 17,016

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
23
S
8
Posts: 118
Reputation: 1,919


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 24 guests