kaboom
kaboom copied to clipboard
change cursor
Hello again! Can I change mouse cursor in kaboom?
I try this code in CSS but It's not working for me:
body {
overflow: hidden;
margin: 0;
cursor: url("new-cursor.ico"), default;
}
what I must do?
document.getElementByTagName("canvas").style.cursor = "pointer";
🥇 THANK
There's also the cursor() function in the beta version, just cursor("pointer")
@slmjkdbtl And can I loadSprite for this function?
@sina-yeganeh Not yet, but good idea you should be
Already you can use cursor("url('img.png')"), anyway maybe some buggy, I will open a Discussion soon about how to do custom cursor