# Scrolling help

**URL:** <https://forum.kirupa.com/t/scrolling-help/115925>\
**Category:** Uncategorized\
**Created:** [July 13, 2004, 2:05am UTC](https://forum.kirupa.com/t/scrolling-help/115925 "2004-07-13T02:05:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chungus](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@Chungus](https://forum.kirupa.com/u/Chungus)\
**Post date:** [July 13, 2004, 2:05am UTC](https://forum.kirupa.com/t/scrolling-help/115925/1 "2004-07-13T02:05:00Z")

</div>

Pfft, what a waste of a debut post. :sleep:

I’m a flash programmer and animator from Synj forums. I’m in charge of programming the AHP… and I need to get it too scroll like Alien Hominid.  
Scrolling is new to me, so I basiclly had it:  
onClipEvent(enterFrame) {  
if (Key.isDown(Key.RIGHT)) {  
\_root.bg.\_x-=10;  
}  
}  
(I also had it scrolling left)  
That worked fine, but then Gel told me to make it scrolling like AH - get to a certain area and scroll.  
Since scrolling is new to me, I had no idea what to do, so I had this put in:  
onClipEvent (enterFrame) {  
if (end.hitTest(\_root.player)) {  
\_root.gotoAndStop(3);  
}  
}  
Frame three had the map at the point in the map where the player was… I mean, the point in which I wanted the map to start scrolling.

That worked but not as nice as I wanted it too. I was wondering if you guys could help me? I want it too scroll when the timer has gone past, say, 30 seconds, or so, and then start to scroll… play AH to see what I mean.  
I’ve made some tries, and haven’t figured it out. Don’t worry, I’m not someone who’d just ask without working ofr it. 😛

So, if any of you can help, it’d be greatly apprecatied.  
That works, but not as well
