# Tips on building a better mouse cursor

**URL:** https://forum.kirupa.com/t/tips-on-building-a-better-mouse-cursor/288920
**Category:** Uncategorized
**Created:** [May 23, 2009, 12:23am UTC](https://forum.kirupa.com/t/tips-on-building-a-better-mouse-cursor/288920 "2009-05-23T00:23:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Brent\_Summers](https://avatars.discourse-cdn.com/v4/letter/b/b19c9b/32.png) [@Brent\_Summers](https://forum.kirupa.com/u/Brent_Summers)
#### Post date: [May 23, 2009, 12:23am UTC](https://forum.kirupa.com/t/tips-on-building-a-better-mouse-cursor/288920/1 "2009-05-23T00:23:45Z")

</div>

**Any tips on building a better mouse cursor???**  
The basic implementations of a custom mouse cursors I’ve found to be incredibly unresponsive.

Does anyone out there have any tricks on how to structure the code so that a custom cursor actually updates its position in a more responsive manner?

**Code:**  
function CursorOn():void  
{  
Mouse.hide();  
Cursor.visible = true;  
Cursor.x = mouseX;  
Cursor.y = mouseY;  
Cursor.startDrag();  
Cursor.mouseEnabled = false;  
Cursor.mouseChildren = false;  
}
