kaboom icon indicating copy to clipboard operation
kaboom copied to clipboard

change cursor

Open sina-yeganeh opened this issue 4 years ago • 5 comments

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?

sina-yeganeh avatar Sep 01 '21 11:09 sina-yeganeh

document.getElementByTagName("canvas").style.cursor = "pointer";

lajbel avatar Sep 01 '21 12:09 lajbel

🥇 THANK

sina-yeganeh avatar Sep 01 '21 15:09 sina-yeganeh

There's also the cursor() function in the beta version, just cursor("pointer")

slmjkdbtl avatar Sep 01 '21 15:09 slmjkdbtl

@slmjkdbtl And can I loadSprite for this function?

sina-yeganeh avatar Sep 01 '21 15:09 sina-yeganeh

@sina-yeganeh Not yet, but good idea you should be

slmjkdbtl avatar Sep 01 '21 15:09 slmjkdbtl

Already you can use cursor("url('img.png')"), anyway maybe some buggy, I will open a Discussion soon about how to do custom cursor

lajbel avatar Oct 04 '22 15:10 lajbel