MV [SOLVED] Mirrored Picture?

Hello everyone!

I have been looking a lot into the bitmap objects and sprite objects to see if it's at all possible to mirror them, but I've come to no conclusions. I've tried using transform, local transform, etc, but I'm pretty much trial&erroring, without any wins.

What I'm looking for is being able to mirror an image as if the character is looking at the mirror basically, but posting the exact same picture, only mirrored.

This did my head in so much as I could not find a single reference to mirroring that I ended up exporting seperate images for the mirrored one, but I'm pretty sure there must be something I could do to avoid using double files.

Thanks in advance to whoever sees and replies to this with a solution (or at least to point me in the right direction)

PS: Just to explain what I'm looking for better (don't read this if you already understood):
Imagine I have file Mark1.png which is a character. Now imagine Mark looking in the mirror. So I should have Mark1.png on layer 1, and Mark1.png mirrored on layer 2. That mirroring is what I'm looking for.

Basically what I want is to know where is it in the properties of the bitmap/sprite.
why not a using mirror plugin? there are a couple that read the same file,
if you face down, it looks face up in the mirror and vice versa.

A nice one is [TSR_Mirror] but there are more of those that are good, some
are a bit more complex or require a setup in order to work, the one I linked
require only to edit the tileset and probably the wall behind it.

the rest is plugin and play mostly and have some nice features in it
as for not mirror it or hide mirror reflection (usefull for ghost or hidden objects).

so look around and maybe you find what you look for.
why not a using mirror plugin? there are a couple that read the same file,
if you face down, it looks face up in the mirror and vice versa.

A nice one is [TSR_Mirror] but there are more of those that are good, some
are a bit more complex or require a setup in order to work, the one I linked
require only to edit the tileset and probably the wall behind it.

the rest is plugin and play mostly and have some nice features in it
as for not mirror it or hide mirror reflection (usefull for ghost or hidden objects).

so look around and maybe you find what you look for.


Thanks a lot for your reply. Alas I am looking for mirroring pictures meaning pictures from the img/pictures folder...

EDIT: I'm basically looking to load a picture of which I *do not already have its mirrored version* and mirror it via code. For example, load the bitmap, mirror it, create a new sprite object with the mirrored bitmap.
SOLVED:
Basically assuming that the sprite in question is "sprite" to mirror it you can simply do
sprite.scale.x *= -1

Also note that its anchor point has to change. From what I tested, changing it from 0 to 1 does the trick (the sprite stays in place, just mirrored)

sprite.anchor.x = 1

Original thread: https://forums.rpgmakerweb.com/threads/solved-mirrored-picture.144819/