godot-docs icon indicating copy to clipboard operation
godot-docs copied to clipboard

Tutorial: Custom mouse cursors

Open mhilbrunner opened this issue 8 years ago • 4 comments

Multiple people on Discord/Q&A were asking how to do custom mouse cursors.

This is the PR that added support, including a demo project: https://github.com/godotengine/godot/pull/12814

We should document this somewhere, maybe create a tutorial.

mhilbrunner avatar Mar 02 '18 07:03 mhilbrunner

One question, is there a difference between this and setting the cursor image in the project settings? I notice that using code provide more options. Just want to clarify it before working on this.

ZX-WT avatar Mar 06 '18 15:03 ZX-WT

One question, is there a difference between this and setting the cursor image in the project settings? I notice that using code provide more options. Just want to clarify it before working on this.

No difference, in the project settings you just define one shape (Input.CURSOR_ARROW by default) and if you set via script you can define different shapes of cursors.

guilhermefelipecgs avatar Mar 10 '18 12:03 guilhermefelipecgs

@mhilbrunner I think most people probably was having difficult with the size of the cursor, that must be in 32x32px, maybe we need to add this in the docs to clarify.

guilhermefelipecgs avatar Mar 10 '18 12:03 guilhermefelipecgs

I wrote a short tutorial, please provide any missing detail, if any, so I can improve it.

ZX-WT avatar Mar 12 '18 13:03 ZX-WT