pick nearest/furthest doesn't work with families

Bugs will be moved here once resolved.

Post » Mon Apr 18, 2016 6:17 pm

I was trying to use the pick nearest/furthest event with a family but it doesn't work, it doesn't pick the instance as I specified. it happens when I use a family while it works when I use other objects.
in the .capx I try to pick and destroy an instance of the family that is 1000 pixels right from a global variable assigned ondragstart but it picks the instance that I'm starting to drag instead.

http://www.yourfilelink.com/get.php?fid=1200137

Affected browser:
Chrome
Firefox
Explorer

Operating System: both on Windows 10 and Windows 8.1

Construct 2 version: both on r221 and r227
B
14
S
6
Posts: 56
Reputation: 1,212

Post » Mon Apr 18, 2016 6:59 pm

I just had the same problem. I wanted to make members of a family to do a 'push out of solid kind of thing" in a wave outwards. Easyst way to do this is pick the nearest to each one. But that did't work. A bit dissapointed in the capx i just gave someone who asked a question on the forum.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Mon Apr 18, 2016 7:19 pm

Looking at your capx, i realised what i did wrong. The 'nearest' must be included in the Selected Object List from the previous pick condition. That is also not the case in youre capx.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Mon Apr 18, 2016 7:46 pm

Yeah, only the object you're dragging is being picked. This happens even if you don't use families. You could add a "pick all" condition to the beginning of the sub-event as one way to do what you want.
B
94
S
33
G
113
Posts: 5,357
Reputation: 73,275

Post » Fri Apr 22, 2016 1:22 pm

Closing as not a bug.
Scirra Founder
B
399
S
236
G
89
Posts: 24,525
Reputation: 195,382


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest