invert cursor is over not working

Get help using Construct 2

Post » Fri Dec 30, 2016 9:26 am

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
https://www.youtube.com/watch?v=zDERi-WUYf8
how do i solve this?
B
8
S
1
Posts: 6
Reputation: 414

Post » Sat Dec 31, 2016 6:39 am

OK. so the problem i found was that the collision points were too close or overlapping a bit. i just moved the points a bit away from the borders so that it won't collide with other instances and it works better than before. now there is a little space between each key where the cursor can detect before entering the other key. I think i can still fine tune it with the game speed or something..
B
8
S
1
Posts: 6
Reputation: 414

Post » Sat Dec 31, 2016 3:26 pm

B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Sun Jan 01, 2017 7:52 am

Thanks. but i'm working to achieve a mouse over effect.
here's the code i've used

Image
B
8
S
1
Posts: 6
Reputation: 414


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests