PDA

View Full Version : Need help, trying to mirror a character horizontally



mkael
March 31st, 2005, 04:07 AM
I'm making a simple game at school with Flash MX 2004 and I need to know if Flash has some kind of a function to mirror a symbol (MovieClip in this case) horizontally? My character moves left or right depending on which button you press on the keyboard. The point is to collect all the bad snowflakes falling and let the good ones fall to ground. The guy walks quite nicely to the left (he faces left by default) but he does Michael Jackson's Moonwalk when going to right..

http://lastsoul.dyndns.org/hobitti/peli/forumjuttu.JPG

If there is no mirror-function, then how do I position a dublicated but horizontally mirrored object to the place where the player pushed Right?

The MC:s are called raccoonPlayerLeft and raccoonPlayerRight.

Thanks for the help in advance.

Aggrix
March 31st, 2005, 04:33 AM
You can do raccoonPlayer._xscale = -100 for one direction and raccoonPlayer._xscale = 100 for the other direction.

mkael
March 31st, 2005, 08:34 AM
Thanks!