Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New extension: Custom Cursor #1295

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

github-actions[bot]
Copy link
Contributor

Description

This extension add a behavior that allow you to make a custom cursor from a sprite object.

You can (for the moment) use 2 animations:

  • One for the idle state (standard cursor)
  • One when a pressed event is detected (to display something else on a click)

How to use the extension

Add the behavior to a sprite object. The sprite object must meet the following criteria:

  • Have at least one animation (name it "idle"; see below to know how to use a custom name)

  • Origin point should be placed where you intend the user to click. It allow the behavior to correctly place the sprite (the location you use to click with the sprite should match the location used to click with the system cursor)

  • Optional The center point allow you to rotate the sprite around where you are supposed to click (the tip of your system cursor). Usefull when you want to rotate your sprite in the editor

Customize behavior

Add an animation that will be played when the user is pressing the right click

  • Enable the "Has pressed state" checkbox on the behavior settings
  • By default, the behavior will search for a "pressed" animation

Use another animation name

  • Override animation names used for idle and pressed in the behavior settings, under Idle Animation Name and Pressed Animation Name.

Checklist

  • I've followed all of the best practices.
  • I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
  • I am aware that the extension may be updated by anyone, and do not need my explicit consent to do so.

What tier of review do you aim for your extension?

Community (Unreviewed)

Example file

Demo Custom Cursor.zip

Extension file

CustomCursor.json.zip

@github-actions github-actions bot requested a review from a team as a code owner May 22, 2024 19:47
@github-actions github-actions bot added the ✨ New extension A new extension label May 22, 2024
@github-actions github-actions bot mentioned this pull request May 22, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ New extension A new extension
Projects
Status: Needs review
Development

Successfully merging this pull request may close these issues.

1 participant