-
Notifications
You must be signed in to change notification settings - Fork 29
[Button effects] New example #571
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
Conversation
Preview the game(s) changed or added in this Pull RequestThis is an automatic message displaying links to the games in this PR - double check the JSON in case of doubt. |
|
Images automagically compressed by Calibre's image-actions ✨ Compression reduced images by 9.2%, saving 22.71 KB.
5522 images did not require optimisation. |
|
The script doesn't handle spaces in project file name. |
Starting added get/set to properties
Thanks, I have updated the filename to not use a space. |
|
@tristanbob If you're ok with the changes, I'll generate the getters and setters. As discussed, I'll remove the opacity behavior. Example changes
Other than this the example should work exactly the same. Extension changesFeatures
Good practices
|
Thanks, please do.
Yes, this is fine.
I don't want to remove it.
I think we should ship the angle behavior as is. In many cases, it works great and we can always improve it later.
This is fine and looks good.
This is a powerful feature, thanks.
This is good. BTW, found a spelling error in extension: "focussed"
Does "fade-in duration" make sense as a name? I guess it does; the change is fading between two states. (At first I thought it only applied to opacity)
I was wondering about this. I'm glad you identified the issue and fix!
Great fix.
I like this change.
Why do we force users to name the required behaviors property? I think the property names for required behaviors should be set automatically.
Looks great. I also noticed you added a "TimeDelta()" expression that applied the TimeScale for the layer. This is interesting because I use TimeDelta in several extensions and I just assumed it would change automatically with TimeScale. Thanks for spending your valuable time reviewing and improving this extension! |
- Remove opacity and animation number behaviors - Extract the angle behavior
|
Should this example be merged with this one? I did a small fix on the name case: |
Description
Change the way a button looks based on the state of the button
This is a simple yet powerful method for changing the appearance of objects using the "Button effects" behavior.
The states of a button include: idle, hover, pressed, held outside, and focused.
Multiple behaviors are provided and they can be combined to make a juicy button with animated responses to user input.
Playable game
https://gd.games/victrisgames/button-effects
Video
GDevelop_APP5T9SYG9.mp4