[SOLVED] Can I disable the custom cursor?

publysher

  • Posts: 41
Hi all,

I'd like to disable the custom cursor shown on my game and instead use the normal Windows cursor. However, I can't find how to do that anywhere.

- no behaviors or code blocks to do that
- the FlxG.mouse.unload() from Flixel does not seem to work

Any ideas?

Regards,
publysher

« Last Edit: April 20, 2012, 03:01:40 am by publysher »

Abigayl

  • Posts: 807
I haven't tried it myself, but I have seen others use the code "Hide Mouse Cursor" (from the User Input panel), then use the straight coding "Mouse.Show()" (can find the block for straight coding in Flow -> Advanced). I think there is also a Forge behavior for custom cursors. Hope that helps :)
If you need help, please check my tutorials either here or Kongregate (http://www.kongregate.com/accounts/Abigayl) or come over to my stream: http://www.livestream.com/poweredbyflowers

Ryusui

  • Posts: 827
Custom cursors aren't hard. You just need to create a cursor actor, hide the mouse pointer, and have the cursor actor follow the mouse.
In the event of a firestorm, the salad bar will remain open.

captaincomic

  • *
  • Posts: 6108
Custom cursors aren't hard. You just need to create a cursor actor, hide the mouse pointer, and have the cursor actor follow the mouse.
That's not the best solution though. It comes with an overhead and the actor might lag a little bit behind the actual mouse position.

If you want to show the default OS cursor, you can do what Abigayl said, or look at Forge for "Remove Flixel Cursor".

If you want a custom cursor instead, there will be a pre-shipped behavior in 2.0 to do this, or look for coleislazy's Load Custom Cursor on Forge.

publysher

  • Posts: 41
Both the custom behavior and the Mouse.show() codeblock function as required.

Thank you all for the tips.

-publysher

airman4

  • Posts: 875
Custom cursors aren't hard. You just need to create a cursor actor, hide the mouse pointer, and have the cursor actor follow the mouse.
That's not the best solution though. It comes with an overhead and the actor might lag a little bit behind the actual mouse position.

If you want to show the default OS cursor, you can do what Abigayl said, or look at Forge for "Remove Flixel Cursor".

If you want a custom cursor instead, there will be a pre-shipped behavior in 2.0 to do this, or look for coleislazy's Load Custom Cursor on Forge.

I'll take a look at coleis lazy stuff since i dont think 2.0 stuff is compatible with inferior versions.