How do I find nearest object and find a path to it?

Get help using Construct 2

Post » Thu Sep 24, 2015 3:09 am

Ive got trouble figuring it out, I want to store the X and Y of the nearest object2, per instance of object1, and move each object1 on its own stored x and y. Having trouble. Picking nearest doesnt work the way I want. its not doing it for each anyway.
B
5
S
1
Posts: 68
Reputation: 515

Post » Thu Sep 24, 2015 8:32 am

Hello

You have to make a "for each loop" on object1 and now you can pick the nearest object2 in a sub event. Be careful of the origin point of your objects.
B
13
S
3
G
4
Posts: 72
Reputation: 3,455

Post » Sat Nov 07, 2015 4:03 pm

wow thankjs
B
5
S
1
Posts: 68
Reputation: 515


Return to How do I....?

Who is online

Users browsing this forum: ditocruz, RalleRoyal and 30 guests