Need help mirroring a 2D rig

I’m currently stuck on this one problem i’ve been trying to solve for almost the whole day now.

I made a rig using really thin parts with surface guis in front of them. The surfacegui’s itself only contain a single Image, and use a spritesheet to determine the body part it draws

image
(Image of the rig)

image
(The rigging)

image
(The rigs hierarchy)

It all works great but im now stuck on mirroring the rig itself. Since the game is a side view i need to be able to mirror the rig for left and right movement.

I tried mirroring the spritesheet. The body parts came out weird looking and in the wrong places.
Mirroring the spritesheet and then adjusting the body parts messed up my rig and doesn’t seem viable to be switching the rig at runtime.
Is there any other solution?

did you try rotating the whole rig

Rotating the rig yields no results, since the images inside surfacegui still look towards the right no matter what

Figured out an imperfect solution, but it works
By setting the X of ImageRectSize to a negative and changing the offset a bit, actually mirrored the sprite on the x axis, after that i hardcoded alot of values to support my spritesheet and it works

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.