playMaker

Author Topic: Flickering mouse cursor  (Read 1420 times)

AlexColorblind

  • Playmaker Newbie
  • *
  • Posts: 2
    • View Profile
Flickering mouse cursor
« on: October 10, 2013, 05: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.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: Flickering mouse cursor
« Reply #1 on: October 10, 2013, 05: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?

AlexColorblind

  • Playmaker Newbie
  • *
  • Posts: 2
    • View Profile
Re: Flickering mouse cursor
« Reply #2 on: October 10, 2013, 06: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)