# Custom cursor "ghost"

**URL:** <https://forum.kirupa.com/t/custom-cursor-ghost/109254>\
**Category:** Uncategorized\
**Created:** [May 3, 2004, 8:33pm UTC](https://forum.kirupa.com/t/custom-cursor-ghost/109254 "2004-05-03T20:33:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lunatic](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@lunatic](https://forum.kirupa.com/u/lunatic)\
**Post date:** [May 3, 2004, 8:33pm UTC](https://forum.kirupa.com/t/custom-cursor-ghost/109254/1 "2004-05-03T20:33:32Z")

</div>

Well I searched and searched but couldn’t find an answer to this problem, though it was alluded to several times . . .

I have a couple of custom cursors. They are called when a particular button is pressed - for example when the “zoom in” button is pressed the cursor becomes an arrow with a plus symbol; when the “zoom out” button is pressed the cursor becomes an arrow with a minu symbol. Real standard stuff.

Anyway, when I press one button I get the correct cursor, no problem. When I press another button I do indeed get a different cursor BUT the first cursor is still there, on the 2nd button that I pressed. It’s like a ghost of that cursor is stuck there when I go to change cursors.

Yes I tried swapDepths using both a depth and a target. Maybe I’m not using it correctly, I’m not sure, but can anyone help me fix this?

:hr:
