Patrol, Attack, Patrol...

Get help using Construct 2

Post » Fri Jun 21, 2013 2:20 am

@Kyatric this deserve to be on that list
B
7
S
3
G
1
Posts: 154
Reputation: 1,812

Post » Fri Jun 21, 2013 2:34 am

@Nimtrix really great help mate :D
B
14
S
2
Posts: 4
Reputation: 970

Post » Sun Jun 23, 2013 4:34 pm

@Nimtrix I am trying to do the same using custom movement, but it appears that path behavior have something to individualize the reactions of each instance of the sprite that custom movement has not.

When doing everything the same way, but with custom, all enemies would run toward the same "Friend" whatever distance they are. Also, the first instance of "Enemy" to catch sight of a "Friend" appears to lead the others.
B
7
S
3
G
1
Posts: 154
Reputation: 1,812

Post » Wed Jun 26, 2013 3:13 am

Yea I can't figure out how to do multiple enemy states (6 total). Would it be best to do functions for each state? If that's the case, then you can't do triggers with functions right? And my enemy won't even start his pathfinding, so that's just a whole other problem
B
35
S
5
Posts: 411
Reputation: 3,406

Post » Wed Jun 26, 2013 2:43 pm

https://www.scirra.com/tutorials/474/pathfinding-with-line-of-sight

maybe this can be helpful.

there is LOS working, without the new behavior, and a timer: to go back to patrol when you escape.

this is working pretty well.

read the comments , i explain how i managed to implement the equivalent of the field of view on this system, so you can approach by behind.
B
18
S
3
Posts: 99
Reputation: 1,376

Previous

Return to How do I....?

Who is online

Users browsing this forum: OddConfection, senna68, smlyldz and 10 guests