family item collisioned with same type returns PickedCount 1

Bugs will be moved here once resolved.

Post » Wed Aug 17, 2016 9:35 pm

Problem Description
When a Sprite is inside a family, using "On Collision with Family" will return Sprite.PickedCount of 1, although the Object it was collisioned with was also the same Sprite type.

Changing it to "On collision with Sprite" will return Sprite.PickedCount of 2.

Attach a Capx
https://drive.google.com/file/d/0B5myBv ... sp=sharing

Description of Capx
Drag one Sprite into another, and You'll get an alert stating the Sprite.PickedCount. This will show 1.
Inside the Event sheet, Change the collision Family to Sprite, and you'll get Sprite.PickedCount of 2, which is the desired result.

Steps to Reproduce Bug
  • Drag one Sprite into another.
  • Change the collision Family to Sprite
  • Test again to see the difference

Observed Result
PickedCount is 1, although 2 Sprites collided with each other.

Expected Result
Sprite.PickedCount to be 2.

Affected Browsers
  • Chrome: YES

Operating System and Service Pack
Windows 10

Construct 2 Version ID
Release 233
B
17
S
7
G
1
Posts: 157
Reputation: 1,878

Post » Wed Aug 24, 2016 1:27 pm

Closing as it appears to actually be working correctly. If you say "A collides with B", only one B is picked, whereas you appear to want it to report that two B are picked, which is wrong.
Scirra Founder
B
387
S
230
G
87
Posts: 24,248
Reputation: 192,238


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests