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
40
S
11
G
5
Posts: 180
Reputation: 4,777

Post » Fri Jun 30, 2017 5:38 pm

ImageImageImage
B
72
S
22
G
290
Posts: 3,886
Reputation: 159,513

Post » Fri Jun 30, 2017 5:47 pm

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

yours
winkr7
B
40
S
11
G
5
Posts: 180
Reputation: 4,777

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
72
S
22
G
290
Posts: 3,886
Reputation: 159,513

Post » Sun Jul 02, 2017 2:33 pm

Thanks blackHornet. That works like a charm.

yours
winkr7
B
40
S
11
G
5
Posts: 180
Reputation: 4,777


Return to How do I...?

Who is online

Users browsing this forum: JPatchZ and 0 guests