# Help with background scrolling for platformer game~~

**URL:** <https://forum.kirupa.com/t/help-with-background-scrolling-for-platformer-game/300943>\
**Category:** Uncategorized\
**Created:** [December 1, 2009, 3:40am UTC](https://forum.kirupa.com/t/help-with-background-scrolling-for-platformer-game/300943 "2009-12-01T03:40:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spellbound55](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@spellbound55](https://forum.kirupa.com/u/spellbound55)\
**Post date:** [December 1, 2009, 3:40am UTC](https://forum.kirupa.com/t/help-with-background-scrolling-for-platformer-game/300943/1 "2009-12-01T03:40:53Z")

</div>

Hi, I’m making a simple side scrolling platform game called [Kit Run](http://kitrun.blogspot.com). For moving left and right, I have the sprite run in place while the background scrolls in the opposite direction. However, when the sprite jumps straight up and down, the background stays stationary.

What I need help with is getting the background to scroll down when the sprite moves up beyond a certain point, and up when the sprite moves down beyond a certain point. Ive tried several probably unnecessarily complicated methods that only sort of work -

what would be the best way to do it?
