How do I make it so an enemy chases the player

Get help using Construct 2

Post » Sun Aug 23, 2015 7:37 pm

How do I make it so an enemy chases the player. I specifically want to use the "8Direction" tool. So I can adjust the turn rate and deceleration of the enemy.
B
3
Posts: 1
Reputation: 181

Post » Mon Aug 24, 2015 3:53 am

You could use the path-finding function? (Link: https://www.scirra.com/manual/154/pathfinding) This would also work if your levels had obstacles in them. You could say find a path every x seconds or something like that. You won't need to use the "8 Direction" behaviour because you can adjust different parameters like max speed, acceleration, deceleration and rotation speed when moving along the path. The only problem I can think of is that it may be a little heavy on the cpu unless you set a large cell size in the path finder behaviour properties.
B
7
Posts: 27
Reputation: 407


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests