Hover effects with custom cursor

Game Editor comments and discussion.

Hover effects with custom cursor

Postby Superbeni » Sun Aug 19, 2012 8:56 pm

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 ^^
User avatar
Superbeni
 
Posts: 130
Joined: Sun Aug 02, 2009 1:23 pm
Location: Vienna, Austria
Score: 31 Give a positive score

Re: Hover effects with custom cursor

Postby skydereign » Mon Aug 20, 2012 7:18 am

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Hover effects with custom cursor

Postby Superbeni » Mon Aug 20, 2012 7:49 am

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!
User avatar
Superbeni
 
Posts: 130
Joined: Sun Aug 02, 2009 1:23 pm
Location: Vienna, Austria
Score: 31 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest