Hello, sorry for my english, i dont know if i should put this topic on “graphics” or “content” then i put it in “general”, tell me i shoud change.
I need to animate a sprite script, how i can do invert the direction of the sprite ? Often the sprites look only at the right (East Direction), and not at the left(West Direction).
Like a miror.
thanks you for help.
I’m not sure if I understood your question correctly, but if you just want to flip a sprite horizontal or vertical you can just use SpriteEffects.FlipHorizontally
or SpriteEffects.FlipVertically
in SpriteBatch.Draw() (it’s an overload).
Or SpriteEffects.None
to revert it.
1 Like
Yes its that ! You solve my problem !
Thanks a lot
No problem, you’re welcome
1 Like