GDevelopApp / GDevelop-extensions

Repository of behaviors, actions, conditions and expressions to be used in GDevelop for creating games
https://gdevelop.io
MIT License
127 stars 50 forks source link

3D Flip (Vertically and Horizontally) #1279

Open nallovint opened 4 months ago

nallovint commented 4 months ago

Description

Flip sprites with a 3D rotation effect.

Note that the X origin point must be at the center for the best results.

Added vertical flipping to allow flipping in either, or both directions!

How to use the extension

Add the behavior to the sprite. When adding the 'Flip' or 'Flip to side' actions, you can select to do Horizontally, Vertically or both.

Checklist

What tier of review do you aim for your extension?

Community (Unreviewed)

Example file

ThreeDFlip.zip

Extension file

ThreeDFlipNew.zip

github-actions[bot] commented 4 months ago

👋 Thanks for your submission! We are sorry, but the filename of the extension has unrecognized characters. Since filenames with weird character can cause all kinds of problems and security flaws, our system won't allow file names with other characters than normal latin upper- and lowercase characters or numbers. Additionally, the first character must be an uppercase character. Please update your original submission post with a new zip file containing your extension with another file name following those guidelines 🙏

tristanbob commented 4 months ago

@nallovint First off, thanks for your willingness to contribute to GDevelop! We will do our best to guide you along the process.

I started looking at this and frankly, I got carried away trying to update a lot of things like:

The changes in this submission would be considered "breaking", which means if someone updated this extension in their existing game they would have to update their events. This is not a huge problem, but we try to avoid it. If we want to implement the breaking changes, we always increase a major version number when we do it (1.x.x becomes 2.0.0) to let the user know. (This is called Semantic Versioning)

I have two ideas on how to move forward:

1) Keep a single behavior with parameters to choose which axis (or both) to flip on

2) Create a new behavior for vertical flipping

Any thoughts, @D8H or @VegeTato?

FYI - I closed your other issues so we would not get confused on which one to work with.

Updated project

This includes the changes I completed as mentioned above. It's not fully tested or cleaned up, but it might be helpful. ThreeDFlipNewTristan.zip

D8H commented 4 months ago
  1. Keep a single behavior with parameters to choose which axis (or both) to flip on
  2. Create a new behavior for vertical flipping

I would vote for 3, have 2 actions: 1 to flip vertically and 1 to flip horizontally.