How do i make the enemy always follow the player?

Get help using Construct 2

Post » Wed Oct 11, 2017 5:01 pm

So i'm making a 2d, 2 directional game, how can i make the enemies in the game always follow the player while still maintaining their platform behaviour? I have tried countless methods from simulating control to path finding but none of them seem to work the way i want them to... :|

Is there a way to make them always follow the player, even if he's above them or below them? :?:
Another thing is how can i make them jump?? I tried triggers that stimulate jump but they don't work if they are put against a solid, don't ask me how i have no idea :lol:

Here is a video:
In the video i'm using the "Move front" action to move the player, pathfinding works better but is VERY glitchy.

Thanks :)
Posts: 4
Reputation: 183

Post » Wed Oct 11, 2017 7:39 pm

Hey there! I think these might be able to help in general! ... .capx?dl=0 ... .capx?dl=0 ... .capx?dl=0

You'll find lots of useful files searching through the forums and tutorial page! These should answer your questions except maybe getting an enemy to both follow and jump if the player is on a higher ledge. I imagine you need to run some sort of check to figure out if the player is above a certain Y value in relation to the enemy then jump. I'm actually pretty sure I've seen a capx like that floating on the forums too :lol: Anyway, hope these help!
Posts: 185
Reputation: 14,250

Post » Thu Oct 12, 2017 10:59 am

Posts: 4
Reputation: 183

Return to How do I....?

Who is online

Users browsing this forum: savvito123 and 14 guests