Copy link to clipboard
Copied
Hi, I'm designing a game which I need to use a "target icon" as my mouse cursor. I know this is possible in Simulation but in this case, I need to change my mouse cursor to "target icon". Anyone with a solution please help.
Copy link to clipboard
Copied
Try something like:
document.getElementById("cpDocument").style.cursor = "crosshair";
You can use a URL in place of "crosshair" for a custom cursor.
I just used the Developer Tools in Chrome to test, so you'll have to try the JS in your project to see if it works. I would use "crosshair" first to see if it works.
Copy link to clipboard
Copied
Sorry, but I don't understand your question.