Nearby instance of object

Get help using Construct 2

Post » Tue Nov 27, 2012 2:36 am

So I was just derping around trying to make a proximity based game. Only trouble is I am getting stuck with identifying each instance.

What I want is that is one of the blue blocks is near another, that it will go to 50% opacity, otherwise it will be 100%.

I've managed to find a way to identify them through referencing their instance, but I don't want to have 10 lines of code if I have 10 instances.

Can someone please have a look at this .capx and let me know if you can fix/come up with a way to help me with this problem ?
Using R238 for all examples
B
60
S
17
G
6
Posts: 363
Reputation: 9,125

Post » Tue Nov 27, 2012 8:48 am

@emoaeden

Hi, i'm not sure if this is something like what you wanted:
http://dl.dropbox.com/u/33370253/ClosestInstance.capx
B
157
S
114
G
8144
Posts: 42
Reputation: 4,080,739

Post » Tue Nov 27, 2012 11:04 am

That's perfect, TY :)
Using R238 for all examples
B
60
S
17
G
6
Posts: 363
Reputation: 9,125


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests