Bumped into this bug myself and realised there was an issue raised as well.
The flickering happens because all characters reference to same instance of assets.
If player starts to become transparent, alpha value of a frame is changed. This frame is be used by all other bunnies as well which causes inconsistent alpha values and therefore the flickering.
This is now resolved by passing a copy of the images for each bunny instead of a reference. A quick fix.
Checklist
[x] I have tested this change locally and it works as expected.
[x] I have made sure that the code follows the formatting and style guidelines of the project.
Summary
This PR fixes the bug reported in this issue: https://github.com/sloukit/pydew-valley-uzh/issues/147
Bumped into this bug myself and realised there was an issue raised as well.
The flickering happens because all characters reference to same instance of assets. If player starts to become transparent, alpha value of a frame is changed. This frame is be used by all other bunnies as well which causes inconsistent alpha values and therefore the flickering.
This is now resolved by passing a copy of the images for each bunny instead of a reference. A quick fix.
Checklist
Labels
game-art
,game-gameplay
,game-playtesting