GDevelop-extensions
GDevelop-extensions copied to clipboard
[Auto PR] Buttons
Description
With this behavior you can interact with this object as a button
How to use the extension
Adds button animation effect bounce, zoom in, zoom out, etc...(Requires Tween behavior) Detection of interaction with the button: -is pressed -is just pressed -is on(switch button) -is release The inspiration comes from godot. coming soon the addition of text in the buttons.
Checklist
- [X] I've followed all of the best practices.
- [X] I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
Example
Extension file
A quick review:
- Maybe we should in this extension use an object structure variable for ScaleX, ScaleY, TextScale, InitPosition, etc... maybe like
__buttonExtension__.ScaleY
? The idea is to keep as possible the object variable clean. - Mark the optional parameters as optional ( I can see the button2 has no animation on hover).
- Tween selector select Tween, ok maybe we should be more precise, here Tween is a behavior, maybe add the type between parenthesis?
- Instead of using 1 or -1 for switch variables prefer a boolean, there is also a toggle action for boolean if you use it.
- Clean the unused events.
- Full name of the conditions have no caps.
As the text object or any type of objects cannot be bind in the behavior properties, I'm not very ok to approve this extension but I stay open It's just my thought.
You probably don't want to change the text object properties every frame.
25% of a CPU core for 4 buttons is a lot:
The same scene with the behavior disabled:
Hello @Alios5 👋 !
A review has started for this extension, but a new option has presented itself in the meantime. We now have a list of unreviewed "Community extensions", and your extension can be added to it, bypassing the review phase.
If you chose to not take a review, you need to keep the following in mind:
- As of now, community extensions are not yet shown to users, but they should be until next update
- Community extensions will never be shown to GDevelop users directly, they will have to check a checkbox for them to be shown
- All community extension have a warning about them being unstable and unreviewed displayed on their store page
- Your extension will be added immediately, no question asked, and without you needing to do any changes to your extension
tl;dr You will not need to do any more work on your extension, but it might not meet the standards of all users, and reach less users.
If you chose to continue on with the review:
- The reviewing process might require of you to make some changes to your extension until it meets our reviewer's standards
- Your extension will reach more users
- You will be delivering a better extension to the community
- It will take a bit more time for your extension to be added to the store
tl;dr You will need to do a bit more work but deliver a high quality contribution that will reach more people
The choice is yours, please tell us how you would like to continue.
Hello @Alios5 👋 !
It seems you never responded to our messages. Without hearing back from you, we sadly cannot continue the submission process. Please respond in the next 10 days, or we will assume you will not come back and have to close this submission.
Thanks!