Can Someone help. I got a main frame in which the character walks around the town. I use scrolling instead of the character moving. When I go into say a shop. It goes in you do your business and walks out again. When you walk out it doesn't spawn you outside of the shop door but where you start in the first place. How do I get it to spawn the player at a certain co-ordinate?
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.