# Moving a character Help!?

**URL:** <https://forum.kirupa.com/t/moving-a-character-help/304853>\
**Category:** flash\
**Created:** [February 15, 2010, 2:56pm UTC](https://forum.kirupa.com/t/moving-a-character-help/304853 "2010-02-15T14:56:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Script\_ist](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@Script\_ist](https://forum.kirupa.com/u/Script_ist)\
**Post date:** [February 15, 2010, 2:56pm UTC](https://forum.kirupa.com/t/moving-a-character-help/304853/1 "2010-02-15T14:56:10Z")

</div>

Hello, I have a game where I am moving a character and I want it so you press  
–\> (left) and keep moving left;  
if( Key.isDown(Key.LEFT))  
{  
\_x = \_x - 10;  
}  
Only moves you 10 spaces that way -\>. Is there anyway you can make it so it keeps moving that way, with out going straight there.

I know \_x = \_x - 10; does that but it doesn’t if its in an ‘if’.

Thanks Script.ist

oh and I’m using 2.0
