pick nearest to same object

Get help using Construct 3!

Post » Fri Jun 30, 2017 5:19 pm

Hello;

I have a bunch of balls, If I click a ball I want the nearest ball to that ball.
They are all the same object. If I take the first ball at coord locX,LocY (the clicked balls location)
and use
Pick nearest to (locX,LocY) I get the same ball I clicked back again.
SO what I really want to know is how to take a single UID out of the SOL.

Suppose the UID of the clicked ball is clickedUID

I tried
Pick all Balls (to start with the universe of all Balls)
ball.UID!=clickedUID

but this doesn't take clickedUID out of the SOL of all balls. It just tests ball.UID(0).

thanks for your time.
yours
Winkr7
B
34
S
8
G
3
Posts: 169
Reputation: 3,305

Post » Fri Jun 30, 2017 5:38 pm

ImageImageImage
B
71
S
22
G
247
Posts: 3,756
Reputation: 137,558

Post » Fri Jun 30, 2017 5:47 pm

Thanks blackhornet.
I will look at this later after work.

yours
winkr7
B
34
S
8
G
3
Posts: 169
Reputation: 3,305

Post » Fri Jun 30, 2017 5:52 pm

In case the anticipation is killing you :D
Image
The scaling is just a visual aid.
ImageImageImage
B
71
S
22
G
247
Posts: 3,756
Reputation: 137,558

Post » Sun Jul 02, 2017 2:33 pm

Thanks blackHornet. That works like a charm.

yours
winkr7
B
34
S
8
G
3
Posts: 169
Reputation: 3,305


Return to How do I...?

Who is online

Users browsing this forum: No registered users and 0 guests