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
13
S
4
Posts: 87
Reputation: 1,053

Post » Tue Sep 23, 2014 3:08 am

use the PathFinder behavior on your sprite.
B
100
S
33
G
16
Posts: 1,204
Reputation: 16,865

Post » Tue Sep 23, 2014 3:20 am

Yes but which actions should I be using?
B
13
S
4
Posts: 87
Reputation: 1,053

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,848

Post » Tue Sep 23, 2014 12:28 pm

B
100
S
33
G
16
Posts: 1,204
Reputation: 16,865

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
13
S
4
Posts: 87
Reputation: 1,053


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 23 guests