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

Battle: Fix broken animation when the sprite is flipped #3049

Merged
merged 1 commit into from
Jul 5, 2023

Conversation

Ghabry
Copy link
Member

@Ghabry Ghabry commented Jun 29, 2023

While fixing flipped spritesheets I forgot to consider that battle sprites can be also flipped.

The battle sprites contained adjustment for the src_rect when they were flipped. As I added a fix to the sprite class this means it was double-inverted and broke.

Solved this by removing all the adjustment code from the battle sprites.

(seeing these workarounds this means that this was a long-standing bug in the flip-code)


Please test various 2k3 games and check if the battles look correct!

I tested:

  • Lufia V For the Savior

Broke the rendering as the same happens now in the sprite class for use by pictures.
@Ghabry Ghabry added this to the 0.8.0.1 milestone Jun 29, 2023
@Ghabry
Copy link
Member Author

Ghabry commented Jul 2, 2023

Jenkins: test this please

@fdelapena fdelapena merged commit a674efc into EasyRPG:master Jul 5, 2023
4 checks passed
@Ghabry Ghabry deleted the fix/flip branch September 2, 2024 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants