# Advanced Scrolling Help

**URL:** <https://forum.kirupa.com/t/advanced-scrolling-help/303690>\
**Category:** programming\
**Created:** [January 25, 2010, 8:59am UTC](https://forum.kirupa.com/t/advanced-scrolling-help/303690 "2010-01-25T08:59:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WarChimp](https://avatars.discourse-cdn.com/v4/letter/w/a5b964/32.png) [@WarChimp](https://forum.kirupa.com/u/WarChimp)\
**Post date:** [January 25, 2010, 8:59am UTC](https://forum.kirupa.com/t/advanced-scrolling-help/303690/1 "2010-01-25T08:59:24Z")

</div>

Hey Kirupa!

Basically I need advanced scrolling done and hey I got it but I have run into a few problems with it here is the code

```php

if(_root.player._x > 500){
		_root.player._x ++;
		_root.ground._x --;
	}

```

Now basically I need the scrolling to move as fast as the player but I do not know how to do that at all. I am sure its something real basic but I cannot figure it out ☹  
Also how do I make it stop scrolling when he reaches the edge of the map. Because I don’t want it to be scrolling into nothing -.- it just wouldn’t look good

Thanks in advance

~WarChimp
