I have created some piano keys using one sprite object. black and white keys are just two separate frames.
when the cursor is over a key, it is supposed to lower the opacity . When it leaves, the opacity should reset. It seems to work fine but when the cursor gets over another key without leaving the first key, they both have low opacity and the first one doesn't reset. it doesn't reset unless it leaves all the keys that have low opacity.
This is what happens
how do i solve this?