Page 1 of 1

Hover effects with custom cursor

PostPosted: Sun Aug 19, 2012 8:56 pm
by Superbeni
For the game im currently developing, i want to use a custom cursor, but i got problems with the functionality of the cursor.
I just got the MouseButtonDown/Up events working, but the MouseOver events dont work. (need them for a hover effect)
I tried to disable all events, but it still doesnt work.

What can i do to keep the full functionality of the mouse while having a custom cursor?

Posting quite a lot of questions/problems right now, maybe i should slow down a bit ^^

Re: Hover effects with custom cursor

PostPosted: Mon Aug 20, 2012 7:18 am
by skydereign
The mouse over event doesn't quite work that way. So, you'll have to come up with something else to provide that functionality. One option is to use collisions, but that is only a good idea if it won't contribute to lag. Another option is to have a hole in the center of the cursor, that way the mouse still triggers mouse over events for actors under the cursor.

Re: Hover effects with custom cursor

PostPosted: Mon Aug 20, 2012 7:49 am
by Superbeni
As I have the cursors point at the exact same position as the custom cursor, i simply changed the custom cursor a bit, now it´s working perfectly again, thanks a lot!