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 #1294

Closed
3 tasks done
DecampsRenan opened this issue May 22, 2024 · 2 comments
Closed
3 tasks done

New extension: Custom Cursor #1294

DecampsRenan opened this issue May 22, 2024 · 2 comments
Labels
✨ New extension A new extension

Comments

@DecampsRenan
Copy link

DecampsRenan commented May 22, 2024

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

@DecampsRenan DecampsRenan added the ✨ New extension A new extension label May 22, 2024
Copy link
Contributor

👋 Thanks for your submission! Unfortunately, all submitted extensions have to meet some minimal quality standard - the extension best practices - and our system has found that your extension does not fully comply 😔. You can find all of those rules on the GDevelop wiki.

The following issues have been found by the system concerning the respect of those best practices by your extension:

  ⟶ ❌ [Dots in sentences]: Field 'shortDescription' of the extension description misses a dot at the end of the sentence!

Please update your original submission post with a new zip file containing your extensions updated to follow those guidelines 🙏

Copy link
Contributor

Hi @DecampsRenan! 👋 This submission has passed all required tests, and has been moved to a PR as part of our submission pipeline. You can see the progress of your submission on this page. Community submissions are not reviewed by default, so your extension should be added once we've checked that your submission doesn't contain malicious code without further intervention on your part. If you wish for your extension to be reviewed (and thereby moved to the list of reviewed extensions), please follow the instructions written on the README. Thanks again for your contribution to GDevelop!

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
None yet
Development

No branches or pull requests

1 participant