How do I magnetize specific instances towards a player

Get help using Construct 2

Post » Sat Apr 25, 2015 3:44 pm

I'm trying to create a magnetic attraction to specific instances of an item towards the player character when they are within a certain distance of the specific instance.

I have the magnetize logic down and it seems to work fine except I can't seem to find a way to make it only work for the nearest instance. Instead it works for every instance on the level.

I'm new to this program so this might be an easy fix, but any help would be appreciated! The capx file is links below and I've set the movement to WASD.

https://drive.google.com/file/d/0B_fsFsHtHjNqTkY3N1dVanFmenM/view?usp=sharing
B
5
S
1
Posts: 19
Reputation: 413

Post » Sat Apr 25, 2015 3:57 pm

Innovo wrote:I can't seem to find a way to make it only work for the nearest instance. Instead it works for every instance on the level....

Image

Image
B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

Post » Sat Apr 25, 2015 3:59 pm

Ah yes. An easy fix as I thought it would be. Thanks! Haha.
B
5
S
1
Posts: 19
Reputation: 413


Return to How do I....?

Who is online

Users browsing this forum: MadSpy and 53 guests