Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: AlexColorblind on October 10, 2013, 08:07:44 AM

Title: Flickering mouse cursor
Post by: AlexColorblind on October 10, 2013, 08:07:44 AM
Hi everyone, I already did a bug report, but I want to post here to understand if I'm only one experiencing this problem.

I tried to hide my cursor in a game script (without using PM), using the Screen.showCursor = false;
if I put this line of code in a Start() or Update() function of a script, whenever I build the game the cursor will just flicker on screen.

I believe this is because of the SetMouseCursor action of PlayMaker and the way it's built (as if PM would constantly reupdate the Screen.showCursor to true every frame).

I fixed this by using the PlayMaker action for hiding the cursor. This, though, shouldn't happen since the user needs to be able to use PlayMaker as an alternative to pure code.

I wonder if somebody else experienced the same thing.
Title: Re: Flickering mouse cursor
Post by: Lane on October 10, 2013, 08:42:27 AM
The PM action is fired once and doesn't run every frame to hide the cursor.

Which platform are you building to?
Title: Re: Flickering mouse cursor
Post by: AlexColorblind on October 10, 2013, 09:04:29 AM
I'm building for PC.

Right now I just put the SetMouseCursor action in the start node of the player, and now it perfectly works (without additional code in other scripts)