How do I Give AI to my enemy?

Get help using Construct 2

Post » Mon Jan 05, 2015 1:33 pm

sgn15 wrote:Ok. I would suggest making sensors (invisible objects). Better yet, make different sensors for different movement directions.

If enemy overlaps sensor_right, move right.
If enemy overlaps sensor_left, move left.
and so on.
then you can also check line of sight or distance from player.

This is very interesting. I think I can use this. Thanks! :)
B
14
S
4
Posts: 300
Reputation: 1,643

Post » Mon Jan 05, 2015 1:38 pm

Thomas Harding wrote:It didn't work out that well.

What is @sgn15 is suggesting with the sensor points is quite clever. It should work very nicely if implemented correctly. I'll be trying this soon. Put the points along pathways and at intersections and turns. Add some logic in the points to intentionally direct certain sprites or even randomly turn them or make them act based on where they are or what they might have in LOS. It's a good idea.
B
14
S
4
Posts: 300
Reputation: 1,643

Previous

Return to How do I....?

Who is online

Users browsing this forum: RIDETHEPIG and 4 guests