Collision detection issues

https://snap.berkeley.edu/snap/snap.html#present:Username=programmer_user&ProjectName=pentatonic%20scale
Why does it trigger the code for the sprite numbered 4 when I click on nearby sprites like sprite 5?
I'm guessing this is because the collision detection boundaries of the sprite are too large; I'm not sure though and I don't think there's a way to change the boundaries (if there even are boundaries)


you always play frequency 440 hz !

oh wait yeah that is a bug
but that's not the cause of the collision bug

no problem with collision for me
image
(even with this setup)

Same

What is your browser/OS?

it works fine for me. Can you show a screenshot of what the setup is when you encounter the bug?

oh wait nvm, I just realized that I added a script for click detection when I thought I hadn't
nevertheless thanks to @loucheman for spotting the other bug

Same!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.