Problems when using my own mouse cursor

Non-platform specific questions.

Problems when using my own mouse cursor

Postby bsi » Thu Jan 12, 2012 8:57 am

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.)?
bsi
 
Posts: 6
Joined: Thu Jan 05, 2012 9:24 am
Score: 3 Give a positive score

Re: Problems when using my own mouse cursor

Postby Troodon » Wed Feb 01, 2012 5:28 pm

It should work normally in full screen too. Have you tried with other ged files?
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Re: Problems when using my own mouse cursor

Postby Hblade » Thu Feb 02, 2012 4:25 pm

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.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Problems when using my own mouse cursor

Postby lcl » Thu Feb 02, 2012 4:46 pm

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
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Problems when using my own mouse cursor

Postby Hblade » Sat Feb 04, 2012 9:58 pm

Oh that works too xD +1 now we have the same ammount of points :D
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest