on object clicked doesn't pick topmost

Bugs will be moved here once resolved.

Post » Thu May 31, 2012 1:23 pm

Bug: if you have two overlapping objects and click on the overlapping part the topmost object is not picked as expected. I'm using "on object clicked" and a family. If you instead use it specifically on each family member it works fine.
It looks like an old bug since I've found several posts about it in the forum.
It's the same in every broser I've tested: IE, Firefox, Chrome, Opera.
Here's a capx of the problem
pickTopmost

Edit: solution/my bad:
I've totally missed this feature, it works adding extra condition "pick top instance".
pickTopmostSolutiongerris2012-05-31 14:13:08
B
16
S
4
G
1
Posts: 23
Reputation: 2,523

Post » Thu May 31, 2012 3:14 pm

This isn't actually a bug - when you click the intersection of the two objects, 'On Numbers clicked' runs with both instances picked. When you get an expression with two instances picked, it arbitrarily picks the first instance (which in this case is 'One').

To fix it, just add a 'Pick topmost' condition after.

Edit: solved before me :)Ashley2012-05-31 15:14:24
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests