How do I make one object follow another object

Just started using Construct 2? Post your questions here

Post » Fri Oct 27, 2017 1:12 am

For example, i have a yellow block and I want it to follow a green block. How do I do it?
Like the yellow one is an enemy and he's trying to kill the green one.

Thanks for answering!
Last edited by pilmen24 on Fri Oct 27, 2017 2:07 pm, edited 1 time in total.
B
5
S
1
Posts: 2
Reputation: 329

Post » Fri Oct 27, 2017 2:28 am

Try Pin behavior - select Mode: Rope or Bar style.
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
17
S
9
G
126
Posts: 1,747
Reputation: 67,315

Post » Fri Oct 27, 2017 10:44 pm

Yellow block -> Set angle towards greenblock. Move Forward.
Mistakes were made.
B
57
S
28
G
115
Posts: 1,712
Reputation: 65,172

Post » Sat Oct 28, 2017 3:47 am

You can also check this post:
how-do-i-make-one-object-quot-repel-quot-other-objects_t197205

It's the same logic, just change the formulas to follow instead of moving away.
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
17
S
9
G
126
Posts: 1,747
Reputation: 67,315


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest