Male
Joined on 12/16/07
AdmittingZero 2010-08-14 17:24:13
Store the background's x position on _root. So, <code> if(Key.isKeyDown(RIGHT)) { _root.bg._x -= this.speed; _root.worldx = _root.bg._x; }</code>
When you come outside... <code>_root.bg._x = _root.worldx;</code>
It's pseudo, take it with a grain of salt.
AdmittingZero
Store the background's x position on _root.
So,
<code>
if(Key.isKeyDown(RIGHT))
{
_root.bg._x -= this.speed;
_root.worldx = _root.bg._x;
}</code>
When you come outside...
<code>_root.bg._x = _root.worldx;</code>
It's pseudo, take it with a grain of salt.