flipHorizontal should work for actors whose current drawing is an animation #1258
Labels
bug
This issue describes undesirable, incorrect, or unexpected behavior
Milestone
Steps to Reproduce
flipHorizontal
doesn't seem to correctly flip the underlying spritesflipHorizontal
values.Player
class..flipHorizontal = true
on thecurrentDrawing
Expected Result
When
currentDrawing
is an animation, I should be able to setflipHorizontal
to true or false and have this value propagate to the underlying sprites in the animation.So something like
this.currentDrawing.flipHorizontal = true
should flip an animation by flipping each of the sprites individually.Actual Result
Just setting
flipHorizontal
on the animation doesn't (appear to) flip the underlying sprites'flipHorizontal
values. The top-level animation drawable does have the correct value after being set, but it doesn't seem to propagate down. I'm likely "using it wrong" but maybe the docs could be added to hint at this scenario and provide some guidance on how to do this correctly?Environment
Chrome
Windows
23
Current Workaround
Something like this works, but is a hack around it.
The docs seem to suggest
Animation
should be doing something like this (settingflipHorizontal
on underlying sprites) when this value is set. It would be really interesting for me to know the "correct way" to handle this case!(Really love Excalibur by the way, thanks for all the amazing work!)
The text was updated successfully, but these errors were encountered: