MouseHideQuestion

Game Editor comments and discussion.

MouseHideQuestion

Postby DilloDude » Thu Jan 26, 2006 10:17 pm

Is there a way to hide the mouse until it moves, and then show it until it is still for a time?
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

Postby Novice » Fri Jan 27, 2006 12:07 am

I think that you cant hide the system cursor like that (you can only hide it in GE preferences). But you can do it with an actor parented to the mouse with a code something like this
Code: Select all
if (MouseActor.directional_velocity==0)
{
CreateTimer("Event Actor", "MouseHide", 20000);
}
else if (MouseActor.directional_velocity!=0)
{
//destroys the timer so it dosent hide after you move the mouse
DestroyTimer("MouseHide");
VisibilityState("Event Actor", ENABLE);
}

On MouseHide timer hide the MouseActor and remember to set the timer to count only once or it will hide your mouse every two seconds.
I havent tried it out yet but i think it should work :roll: , if anyones got a beter way to do it please say id like to know.
Why do i always get stuck?
User avatar
Novice
 
Posts: 399
Joined: Mon Aug 29, 2005 10:54 am
Location: Relative
Score: 5 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron