Not signed in (Sign In)

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.


    • CommentAuthorjustnajm
    • CommentTimeNov 16th 2006
     
    I am developing a pacman game to test my skills and stuck at one place:

    I want to use only one movieclip of pacman and doing all the work on it through script, Its face is toward right. As I press the key down it looks down I have done this with the help of _rotation property of movieclip

    pacman._rotation = 90;


    but when I want pacman to look right by pressing right arrow key with the help of _rotation property, pacman do look at right but its eyes are down, and this is what I don't want

    just want to flip from its right postion face to left postion face ( Flip horizontal ) as it is possible through the menu but I am unable to do it with actionscript.

    If somebody can help me!!

    Thanks in advance,
    Najm.
    • CommentAuthorjiosis
    • CommentTimeNov 16th 2006
     

    pacman._xscale *= -1;

    Let us know when you finish creating your game /wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />

    Good luck /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />
    • CommentAuthorjustnajm
    • CommentTimeNov 17th 2006
     
    Thanks jiosis.

    I will, as soon as it will complete.