Jump to content

change cursor to sprite


xetra11
 Share

Recommended Posts

Hey guys,

I really wonder why I was not able to find anything about changing a cursor with PIXI.js or very little with incomplete practical examples.

I found out that I need to set something like this:

sprite.buttonMode = true;
sprite.interactive = true;
sprite.defaultCursor = someSprite;

What I'd like to do is to change the cursor right on start and keep it that way for the whole canvas area.
How do I achieve that?

 

greets Charlie

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...