I can't think too much right now..but maybe when you move you character towards a direction, you can set a variable like var direction to "right" or "lef" or whatever direction, and also the var speed. Then to your background, if(direction == "right") background._x+= speed - 10; (where 10 is the substraction of the character speed so the background runs with a slower speed). Maybe that works for you, see you by