# An Obvious Problem?

**URL:** <https://forum.kirupa.com/t/an-obvious-problem/213888>\
**Category:** programming\
**Created:** [January 24, 2007, 1:07am UTC](https://forum.kirupa.com/t/an-obvious-problem/213888 "2007-01-24T01:07:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Insane\_Knux](https://avatars.discourse-cdn.com/v4/letter/i/439d5e/32.png) [@Insane\_Knux](https://forum.kirupa.com/u/Insane_Knux)\
**Post date:** [January 24, 2007, 1:07am UTC](https://forum.kirupa.com/t/an-obvious-problem/213888/1 "2007-01-24T01:07:26Z")

</div>

I know this is obvious but… I can’t figure it out!  
Okay, these arms look at the mouse. When he looks behind him, it should flip him over…

```auto

onEnterFrame = function(){
    if(main._rotation <= 180){
        main._xscale =+ 100;
    }
    if(main._rotation >= 180){
       main._xscale =- 100;
    }
}

```

If you don’t understand… play StickManSam. [http://www.crazymonkeygames.com/Stickman-Sam-3.html](http://www.crazymonkeygames.com/Stickman-Sam-3.html)  
Sort of like that… Help please?
