Script for SHOW/HIDE mouse

Non-platform specific questions.

Script for SHOW/HIDE mouse

Postby Camper1995 » Tue Nov 03, 2009 5:36 pm

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
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score

Re: Script for SHOW/HIDE mouse

Postby Rux » Thu Nov 05, 2009 12:06 am

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.
I'm not good at coming up with signatures...
User avatar
Rux
 
Posts: 645
Joined: Sun Apr 29, 2007 9:26 pm
Location: Sitting on your moniter invisable.
Score: 35 Give a positive score

Re: Script for SHOW/HIDE mouse

Postby Camper1995 » Thu Nov 05, 2009 8:03 am

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. :)
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score

Re: Script for SHOW/HIDE mouse

Postby Rux » Thu Nov 05, 2009 11:39 pm

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.
I'm not good at coming up with signatures...
User avatar
Rux
 
Posts: 645
Joined: Sun Apr 29, 2007 9:26 pm
Location: Sitting on your moniter invisable.
Score: 35 Give a positive score

Re: Script for SHOW/HIDE mouse

Postby Camper1995 » Fri Nov 06, 2009 1:51 pm

Yeah... ;) cool
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron