Page 1 of 1

Script for SHOW/HIDE mouse

PostPosted: Tue Nov 03, 2009 5:36 pm
by Camper1995
Hi there. I wasn't here a bit longer time. Now, I am back and I am starting to make new game: City Builder 2oo9 !

Yes, yes,..next version of CityBuilder will be (maybe) created.

But what I need is:

Is there any script in GE to show and hide mouse, if you have in Game properties selected "Show mouse" ??

So if I can write in script editor just... Show and hide mouse and that's it .. ??


:) Thank you,

Camper.

:D

Re: Script for SHOW/HIDE mouse

PostPosted: Thu Nov 05, 2009 12:06 am
by Rux
Unfortunately, no there isn't. However, you could make your own curser, and make an actor called curser then put your curser animation on curser, then have the curser follow the mouse on create actor, and disable all the events on curser, then set the preferences to hide curser. When you want the curser to appear or disappear, change curser's transparency.

Re: Script for SHOW/HIDE mouse

PostPosted: Thu Nov 05, 2009 8:03 am
by Camper1995
Yes, I know. But if I make a my own cursor, then, if I click on something, it will don't
click. So, I must click a few times to make that actor be clicked.

Well, never mind now. But thanks for helping. :)

Re: Script for SHOW/HIDE mouse

PostPosted: Thu Nov 05, 2009 11:39 pm
by Rux
Camper1995 wrote:Yes, I know. But if I make a my own cursor, then, if I click on something, it will don't
click. So, I must click a few times to make that actor be clicked.

Well, never mind now. But thanks for helping. :)


Make sure your fake curser is aligned correctly with the real curser, and make sure all its events are disabled.

Re: Script for SHOW/HIDE mouse

PostPosted: Fri Nov 06, 2009 1:51 pm
by Camper1995
Yeah... ;) cool