# \[Help\]Movement using the keyboard(How to flip)

**URL:** <https://forum.kirupa.com/t/help-movement-using-the-keyboard-how-to-flip/34795>\
**Category:** flash\
**Created:** [November 6, 2003, 2:48pm UTC](https://forum.kirupa.com/t/help-movement-using-the-keyboard-how-to-flip/34795 "2003-11-06T14:48:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MOre](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@MOre](https://forum.kirupa.com/u/MOre)\
**Post date:** [November 6, 2003, 2:48pm UTC](https://forum.kirupa.com/t/help-movement-using-the-keyboard-how-to-flip/34795/1 "2003-11-06T14:48:11Z")

</div>

Hi  
Im working on a game right now and have a problem: I want to move the “character” with the left and right keyboard buttons  
Here is the AS I found on the tutorial:  
[AS]on (keyPress “\<Left\>”) {  
currentX = this.\_x;  
this.\_x = currentX - 2;  
\_root.man.\_rotation = ;  
}  
on (keyPress “\<Right\>”) {  
currentX = this.\_x;  
this.\_x = currentX + 2;  
\_root.man.\_rotation = ;  
}[/AS]

The problem is i dont wanna rotate the pic. I just wanna flip it horizontaly whenever i press the left or right button. Is there a way to do that??

thank you verry much

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 6, 2003, 6:24pm UTC](https://forum.kirupa.com/t/help-movement-using-the-keyboard-how-to-flip/34795/2 "2003-11-06T18:24:12Z")

</div>

Try \_root.man.\_xscale = -100.
