Page 1 of 1

Problems when using my own mouse cursor

PostPosted: Thu Jan 12, 2012 8:57 am
by bsi
I experience this problem: I want to replace the default mouse cursor with my own (in .ico format). I use a 48x48 .ico file and define the action ChangeCursor when it enters a particular actor (that in my case is the whole screen view). This works correctly if I set the game preferences so the game is displayed in windowed mode, but if I set full screen mode the cursor randomly jump to the some locations of the screen making it impossible to control. Is this a Game Editor bug or something else (problem with my video card etc.)?

Re: Problems when using my own mouse cursor

PostPosted: Wed Feb 01, 2012 5:28 pm
by Troodon
It should work normally in full screen too. Have you tried with other ged files?

Re: Problems when using my own mouse cursor

PostPosted: Thu Feb 02, 2012 4:25 pm
by Hblade
Best option is to make an actor that has the animation of the cursor, and make the mouse invisible in the settings (Disable mouse cursor), then have the actor follow the mouse. but make sure he's not --IN-- the mouse otherwise you can't click anything. you have to position it right. This script --SHOULD-- work but I'm not sure.
Code: Select all
xscreen=xmouse+((width/2)+1);
yscreen=ymouse+((height/2)+1);


Now you should have a little mouse following the cursor. Keep the cursor enabled so you can position it right. then disable the cursor.

That code should be in draw actor.

Re: Problems when using my own mouse cursor

PostPosted: Thu Feb 02, 2012 4:46 pm
by lcl
Hblade, it's possible to make it so that it's in the mouse.
One just has to disable mouse button up & down events for the cursor :D

Re: Problems when using my own mouse cursor

PostPosted: Sat Feb 04, 2012 9:58 pm
by Hblade
Oh that works too xD +1 now we have the same ammount of points :D