I would also like to know alittle bit about this aswell.
Im looking for something similar but if i can get help along with you Guy,It would make my project that much better.
Im trying to find out how make my enemys always mimic the players Y cords so once i spawn my enemy from the left or right side of the screen,The player cant go around them at all.
I might make a seperate post but i seen this and just figured two questions with one post.It seems to fit here.
But thanks guys.
hope to get help soon
EDIT: I actually just figured out how to make my character always keep the same Y axis as my enemy.
But what im looking for is Once my player moves up or down i want the enemy to react to the change but im not looking for every tick,i want the enemy to change position maybe a half second later than my player if that makes sense.I know how to make my enemy change position but it jumps,Im looking for a smooth transition
Im just trying to make my player feel like the enemy is boxing you in,