Making enemy move towards player even there is solid object?

Get help using Construct 2

Post » Sun Nov 23, 2014 4:07 pm

Hi to everyone here!

I am new to Construct 2. So how to make an enemy move towards the player even there is a solid object blocking the line of sight view?
I couldn't figure it out. After I moved my player object to hide behind a solid object, the enemy object stopped half way chasing the player and I have to come out again and let them chase me. So overall of what i want to do, is to create a similar event or action of the Hotline Miami game.

Please help guys! :D

/Vinnie
B
2
Posts: 5
Reputation: 160

Post » Sun Nov 23, 2014 4:31 pm

Seems like you want LOS until it is triggered, then you switch to Pathfinding.
ImageImageImage
B
71
S
22
G
259
Posts: 3,793
Reputation: 143,702

Post » Sun Nov 23, 2014 5:45 pm

blackhornet wrote:Seems like you want LOS until it is triggered, then you switch to Pathfinding.


Woah thanks a lot yoo! The enemies has now chase the player even there is a solid object!

Well this Youtube video taught me too! Go search: "C2 - A shooter with Path finding! - "What you need to know." - Part #2/2"

Now i want to set the speed because they chase the player object down too slow... I changed the speed but there is no changes. So i tried to add in the set speed from Pathfinder: Movement. After I added the action, there is still no changes from the enemy speed.. So what should i do? O.o?
B
2
Posts: 5
Reputation: 160

Post » Sun Nov 23, 2014 5:56 pm

All of the speed values come into play. Adjust:
Max Speed
Acceleration
Deceleration
Rotate speed
ImageImageImage
B
71
S
22
G
259
Posts: 3,793
Reputation: 143,702

Post » Sun Nov 23, 2014 6:12 pm

blackhornet wrote:All of the speed values come into play. Adjust:
Max Speed
Acceleration
Deceleration
Rotate speed


Hey man! You just won a "Most helpful person on earth" award!

Thanks for the help yoo! :D

/Vinnie
B
2
Posts: 5
Reputation: 160


Return to How do I....?

Who is online

Users browsing this forum: matriax and 6 guests