How to swap textures on a plane

I am making a game in the workflow similar to zombiville. I need to know how to switch textures. Let’s say that i’m making a walk cycle. Ok no problem. I animate the planes inside of maya. But what to do when the character moves from right to left. I think that i need to swap textures for that. Can anyone give me a cloe how to do that.

thanks

What do you mean when move right to left? You would just flip the localScale, unless I’m misunderstanding you.

Yea, I just used negative scale for “flipping” the characters, but I swap textures occasionally too. Look up renderer.material.mainTexture in the manual, should be fairly self explanatory.

thanks man :smile: i figured that out for the flipping :smile: Can i ask you a question about your character resolution if you don’t mind.
Lets say what was the texture resolution of your main character. Was it a 512*512 texture atlas with all the body parts within it?
The question goes to mikaMobile. I’m trying to make the game in your style within maya :stuck_out_tongue: so i have to thank you for that.