Good morning everyone.
I am a Unity newb, so I’m probably going about this all wrong… But I’m setting up a simple scene that has a GuiTexture on it as 2d sprite that moves left and right when you press the left or right arrows.
Simple so far. I have a GameObject that I attached a GUITexture component onto. Gave that GUITexture my character texture. I then setup a script to adjust it’s transform by a little bit each frame when pressing left or right. That all worked well.
Then, I decided I wanted to flip the character to face left or right. Currently the object is scaled as 0.05x, 0.05y, 1z.
To flip the character I thought Oh, simple, just make the X scale a negative. However, this isn’t working for me. -0.05x doesn’t do what I expected. It instead just squished the texture about 10% along the X instead of flipping it.
Any ideas what’s going on? Also if you want to just hit me over the head and say why are you doing it that way when you could just do Blah. then Please do ![]()