NPC follows player

Get help using Construct 2

Post » Sun Jun 16, 2013 5:00 pm

Hi!

I'm making a demo for my game. I don't have much experience in contstruct 2 so I need a little help.
I have 2 characters, one is the player, and one is an npc that follows the player everywhere. He has physical problems so he gets scared from time to time. When he gets scared he stops running behind my player.
So basically he just stands still.

I have absolutely no idea how to make this happen in construct. Can anyone help me?

Thanks a lot! (and sorry for my bad English (: )
B
3
Posts: 2
Reputation: 179

Post » Sun Jun 16, 2013 5:21 pm

Set him as a turret maybe?
(this example was for zombies turning toward you when you got in range)
https://dl.dropboxusercontent.com/u/85412219/forumposts/TurretForRange.capx

You may also check Pathfinding and the new Line of Sight behavior, but I haven't played with that yet.
B
221
S
58
G
32
Posts: 900
Reputation: 39,074

Post » Sun Jun 16, 2013 6:04 pm

Thanks for helping!
It works but there is a little problem, when I set him as a turret and let him follow the player, he follows it, but he rotates all the time..

Do you know how I can fix that?
(my game is a 2D sidescroller)
B
3
Posts: 2
Reputation: 179


Return to How do I....?

Who is online

Users browsing this forum: thewisetree and 1 guest