playMaker

Author Topic: Flickering mouse cursor  (Read 2604 times)

AlexColorblind

  • Playmaker Newbie
  • *
  • Posts: 2
Flickering mouse cursor
« 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.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Flickering mouse cursor
« Reply #1 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?
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

AlexColorblind

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Flickering mouse cursor
« Reply #2 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)